Skip to content

Commit

Permalink
updates for rename
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jan 7, 2024
1 parent 4aad0ed commit 14c1f44
Show file tree
Hide file tree
Showing 26 changed files with 262 additions and 266 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generate-website-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ jobs:
run: |
# cleanup old
rm -rf docs/content/pages/docs/cli/manual/kittycad*.md
rm -rf docs/content/pages/docs/cli/manual/zoo*.md
# move new
mv -f generated_docs/md/kittycad*.md docs/content/pages/docs/cli/manual/
mv -f generated_docs/md/zoo*.md docs/content/pages/docs/cli/manual/
- name: commit the changes in the docs repo
shell: bash
run: |
Expand Down
134 changes: 67 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "kittycad"
name = "zoo"
version = "0.2.18"
edition = "2021"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SHELL := /bin/bash
# Set an output prefix, which is the local directory if not specified
PREFIX?=$(shell pwd)

NAME := kittycad
NAME := zoo

# Set the build dir, where built cross-compiled binaries will be output
BUILDDIR := ${PREFIX}/cross
Expand Down
2 changes: 1 addition & 1 deletion cli-macro-impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ impl Operation {
let struct_name = format_ident!("Cmd{}Create", to_title_case(&singular(tag)));

let struct_doc = format!(
"Create a new {}.\n\nTo create a {} interactively, use `kittycad {} create` with no arguments.",
"Create a new {}.\n\nTo create a {} interactively, use `zoo {} create` with no arguments.",
singular_tag_str,
singular_tag_str,
&singular(tag)
Expand Down
8 changes: 4 additions & 4 deletions homebrew-template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ def install
# check if the user is using Linux and their hardware and install the appropriate binary
if OS.linux?
if Hardware::CPU.type == :intel
bin.install "x86_64_linux/kittycad"
bin.install "x86_64_linux/zoo"
elsif Hardware::CPU.type == :arm
bin.install "aarch64_linux/kittycad"
bin.install "aarch64_linux/zoo"
end
else
if Hardware::CPU.type == :intel
bin.install "x86_64_darwin/kittycad"
bin.install "x86_64_darwin/zoo"
elsif Hardware::CPU.type == :arm
bin.install "aarch64_darwin/kittycad"
bin.install "aarch64_darwin/zoo"
end
end
end
Expand Down
22 changes: 11 additions & 11 deletions src/cmd_alias.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use clap::{Command, CommandFactory, Parser};

/// Create command shortcuts.
///
/// Aliases can be used to make shortcuts for `kittycad` commands or to compose multiple commands.
/// Run `kittycad help alias set` to learn more.
/// Aliases can be used to make shortcuts for `zoo` commands or to compose multiple commands.
/// Run `zoo help alias set` to learn more.
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdAlias {
Expand Down Expand Up @@ -71,9 +71,9 @@ impl crate::cmd::Command for CmdAliasDelete {
}
}

/// Create a shortcut for a `kittycad` command.
/// Create a shortcut for a `zoo` command.
///
/// Define a word that will expand to a full `kittycad` command when invoked.
/// Define a word that will expand to a full `zoo` command when invoked.
///
/// The expansion may specify additional arguments and flags. If the expansion includes
/// positional placeholders such as "$1", extra arguments that follow the alias will be
Expand Down Expand Up @@ -119,12 +119,12 @@ impl crate::cmd::Command for CmdAliasSet {

// Check if already exists.
if valid_command(&self.alias) {
bail!("could not create alias: {} is already a kittycad command", self.alias);
bail!("could not create alias: {} is already a zoo command", self.alias);
}

if !is_shell && !valid_command(&expansion) {
bail!(
"could not create alias: {} does not correspond to a kittycad command",
"could not create alias: {} does not correspond to a zoo command",
expansion
);
}
Expand Down Expand Up @@ -168,7 +168,7 @@ impl crate::cmd::Command for CmdAliasSet {

/// List your aliases.
///
/// This command prints out all of the aliases `kittycad` is configured to use.
/// This command prints out all of the aliases `zoo` is configured to use.
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdAliasList {}
Expand Down Expand Up @@ -206,7 +206,7 @@ fn get_expansion(cmd: &CmdAliasSet) -> Result<String> {
}
}

/// Check if a set of arguments is a valid `kittycad` command.
/// Check if a set of arguments is a valid `zoo` command.
pub fn valid_command(args: &str) -> bool {
let s = shlex::split(args);
if s.is_none() {
Expand Down Expand Up @@ -367,7 +367,7 @@ mod test {
shell: false,
}),
want_out: "".to_string(),
want_err: "could not create alias: config is already a kittycad command".to_string(),
want_err: "could not create alias: config is already a zoo command".to_string(),
},
TestAlias {
name: "add already command -> completion".to_string(),
Expand All @@ -377,7 +377,7 @@ mod test {
shell: false,
}),
want_out: "".to_string(),
want_err: "could not create alias: completion is already a kittycad command".to_string(),
want_err: "could not create alias: completion is already a zoo command".to_string(),
},
TestAlias {
name: "add does not exist".to_string(),
Expand All @@ -387,7 +387,7 @@ mod test {
shell: false,
}),
want_out: "".to_string(),
want_err: "could not create alias: dne thing does not correspond to a kittycad command".to_string(),
want_err: "could not create alias: dne thing does not correspond to a zoo command".to_string(),
},
TestAlias {
name: "list all".to_string(),
Expand Down
4 changes: 2 additions & 2 deletions src/cmd_api_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use itertools::Itertools;
/// Perform operations on CAD files.
///
/// # convert a step file to an obj file
/// $ kittycad file convert ./input.step ./output.obj
/// $ zoo file convert ./input.step ./output.obj
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdApiCall {
Expand All @@ -30,7 +30,7 @@ impl crate::cmd::Command for CmdApiCall {
/// Perform operations for API calls.
///
/// # get the status of an async API call
/// $ kittycad api-call status <id>
/// $ zoo api-call status <id>
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdApiCallStatus {
Expand Down
18 changes: 9 additions & 9 deletions src/cmd_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use oauth2::TokenResponse;

/// Login, logout, and get the status of your authentication.
///
/// Manage `kittycad`'s authentication state.
/// Manage `zoo`'s authentication state.
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdAuth {
Expand Down Expand Up @@ -85,16 +85,16 @@ pub fn parse_host(input: &str) -> Result<url::Url> {
/// Alternatively, pass in a token on standard input by using `--with-token`.
///
/// # start interactive setup
/// $ kittycad auth login
/// $ zoo auth login
///
/// # authenticate against a specific Zoo instance by reading the token from a file
/// $ kittycad auth login --with-token --host kittycad.internal < mytoken.txt
/// $ zoo auth login --with-token --host zoo.internal < mytoken.txt
///
/// # authenticate with a specific Zoo instance
/// $ kittycad auth login --host kittycad.internal
/// $ zoo auth login --host zoo.internal
///
/// # authenticate with an insecure Zoo instance (not recommended)
/// $ kittycad auth login --host http://kittycad.internal
/// $ zoo auth login --host http://zoo.internal
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
pub struct CmdAuthLogin {
Expand Down Expand Up @@ -298,10 +298,10 @@ impl crate::cmd::Command for CmdAuthLogin {
/// This command removes the authentication configuration for a host either specified
/// interactively or via `--host`.
///
/// $ kittycad auth logout
/// $ zoo auth logout
/// # => select what host to log out of via a prompt
///
/// $ kittycad auth logout --host kittycad.internal
/// $ zoo auth logout --host zoo.internal
/// # => log out of specified host
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
Expand Down Expand Up @@ -424,7 +424,7 @@ impl crate::cmd::Command for CmdAuthLogout {

/// Verifies and displays information about your authentication state.
///
/// This command will test your authentication state for each Zoo host that `kittycad`
/// This command will test your authentication state for each Zoo host that `zoo`
/// knows about and report on any issues.
#[derive(Parser, Debug, Clone)]
#[clap(verbatim_doc_comment)]
Expand All @@ -451,7 +451,7 @@ impl crate::cmd::Command for CmdAuthStatus {
writeln!(
ctx.io.out,
"You are not logged into any Zoo hosts. Run `{}` to authenticate.",
cs.bold("kittycad auth login")
cs.bold("zoo auth login")
)?;
return Ok(());
}
Expand Down
Loading

0 comments on commit 14c1f44

Please sign in to comment.