diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45dc3ac..19fc230 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,9 +59,9 @@ jobs: if [ "${{ matrix.os }}" = "windows-latest" ]; then - 7z a ../../../$s2-cli-${{ matrix.target }}.zip s2-cli.exe + 7z a ../../../s2-${{ matrix.target }}.zip s2.exe else - tar -czf ../../../$s2-cli-${{ matrix.target }}.tar.gz s2-cli + tar -czf ../../../s2-${{ matrix.target }}.tar.gz s2 fi - name: upload artifacts uses: actions/upload-artifact@v4 diff --git a/Cargo.lock b/Cargo.lock index df627d7..9d19c02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1516,7 +1516,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] -name = "s2-cli" +name = "s2" version = "0.1.0" dependencies = [ "async-stream", diff --git a/Cargo.toml b/Cargo.toml index f711daf..a3fe5b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "s2-cli" +name = "s2" version = "0.1.0" edition = "2021" diff --git a/src/config.rs b/src/config.rs index 8fcc43e..a84ff9f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -61,7 +61,7 @@ pub enum S2ConfigError { #[error("Failed to load config file")] #[diagnostic(help( - "Did you run `s2-cli config set`? or use `S2_AUTH_TOKEN` environment variable." + "Did you run `s2 config set`? or use `S2_AUTH_TOKEN` environment variable." ))] LoadError(#[from] config::ConfigError), diff --git a/src/main.rs b/src/main.rs index ddbe7db..fdf2474 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,8 +35,8 @@ const STYLES: styling::Styles = styling::Styles::styled() const GENERAL_USAGE: &str = color_print::cstr!( r#" - $ s2-cli config set --auth-token ... - $ s2-cli account list-basins --prefix "bar" --start-after "foo" --limit 100 + $ s2 config set --auth-token ... + $ s2 account list-basins --prefix "bar" --start-after "foo" --limit 100 "# );