Skip to content

Commit

Permalink
rename: tc to tailcall
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed Nov 17, 2023
1 parent 30ff7ea commit d49023e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The below file is a standard `.graphQL` file, with a few additions such as `@ser
Now, run the following command to start the server with the full path to the jsonplaceholder.graphql file that you created above.

```bash
tc start ./jsonplaceholder.graphql
tailcall start ./jsonplaceholder.graphql
```

Head out to [docs] to learn about other powerful tailcall features.
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ chmod +x "$INSTALL_DIR/tailcall-${OS}-${ARCH}"

# Create symlinks in ~/.tailcall/bin
mkdir -p "$HOME/.tailcall/bin"
ln -sf "$INSTALL_DIR/tailcall-${OS}-${ARCH}" "$HOME/.tailcall/bin/tc"
ln -sf "$INSTALL_DIR/tailcall-${OS}-${ARCH}" "$HOME/.tailcall/bin/tailcall"

# Determine which shell the user is running and which profile file to update
if [[ "$SHELL" == *"zsh"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion npm/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function genPlatformPackage() {
const binPath = `${packagePath}/bin`

const targetPath = ext ? `../target/${target}/release/tailcall${ext}` : `../target/${target}/release/tailcall`
const tcPath = ext ? `${binPath}/tc${ext}` : `${binPath}/tc`
const tcPath = ext ? `${binPath}/tailcall${ext}` : `${binPath}/tailcall`
const packageJsonPath = `${packagePath}/package.json`
const readmePath = "../README.md"

Expand Down
3 changes: 2 additions & 1 deletion npm/pre-install.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const os = process.platform
const arch = process.arch
const libc = process.libc

const dependency = Object.keys(optionalDependencies).find((name) => name.includes(`${os}-${arch}`))
const dependency = libc ? Object.keys(optionalDependencies).find((name) => name.includes(`${os}-${arch}-${libc}`)) : Object.keys(optionalDependencies).find((name) => name.includes(`${os}-${arch}`))
if (!dependency) {
const redColor = "\x1b[31m"
const resetColor = "\x1b[0m"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ABOUT: &str = r"
\__/\__,_/_/_/\___/\__,_/_/_/";

#[derive(Parser)]
#[command(name ="tc",author, version = VERSION, about, long_about = Some(ABOUT))]
#[command(name ="tailcall",author, version = VERSION, about, long_about = Some(ABOUT))]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
Expand Down

0 comments on commit d49023e

Please sign in to comment.