diff --git a/.github/workflows/echo-rs-ci.yml b/.github/workflows/echo-rs-ci.yml index 2e63c2f..c819f60 100644 --- a/.github/workflows/echo-rs-ci.yml +++ b/.github/workflows/echo-rs-ci.yml @@ -1,4 +1,4 @@ -name: echo-rs CI +name: gnu-echo-rs CI on: push: @@ -13,14 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up echo-rs + - name: Set up gnu-echo-rs uses: actions/checkout@v2 - name: Install cargo-audit run: cargo install cargo-audit - name: Build run: cargo build --verbose - name: test - run: python3 gnu_echo_tests/test.py -e /bin/echo -b target/debug/echo-rs + run: python3 gnu_echo_tests/test.py -e /bin/echo -b target/debug/gnu-echo-rs - name: Clippy run: cargo clippy --verbose -- -D warnings - name: Audit diff --git a/Cargo.toml b/Cargo.toml index 9a31768..f234a1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "echo-rs" +name = "gnu-echo-rs" version = "0.1.0" edition = "2021" diff --git a/README.md b/README.md index 1b11bfe..7bc98a4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# echo-rs +# gnu-echo-rs My rewrite of the echo GNU core utility in rust @@ -7,11 +7,11 @@ author: [Lu Baumann](https://blog.surferlul.me/) ## usage -refer to `echo-rs --help`: +refer to `gnu-echo-rs --help`: ``` -Usage: echo-rs [SHORT-OPTION]... [STRING]... - or: echo-rs LONG-OPTION +Usage: gnu-echo-rs [SHORT-OPTION]... [STRING]... + or: gnu-echo-rs LONG-OPTION Echo the STRING(s) to standard output. Rust rewrite of GNU echo util. -n do not output the trailing newline @@ -40,9 +40,9 @@ If -e is in effect, the following sequences are recognized: test script requires python >= 3.10 -`gnu_echo_tests/test.py -e /bin/echo -b ` +`gnu_echo_tests/test.py -e /bin/echo -b ` | parameter | value | | ---------------- | --------------------------------------- | | `-e`, `--echo` | path to echo executable to test against | -| `-b`, `--binary` | path to echo-rs binary to test | +| `-b`, `--binary` | path to gnu-echo-rs binary to test | diff --git a/src/consts.rs b/src/consts.rs index a3eb7ab..a9d807b 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -5,8 +5,8 @@ use regex::Regex; pub const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION"); pub const HELP_DIALOG: &str = r#" -Usage: echo-rs [SHORT-OPTION]... [STRING]... - or: echo-rs LONG-OPTION +Usage: gnu-echo-rs [SHORT-OPTION]... [STRING]... + or: gnu-echo-rs LONG-OPTION Echo the STRING(s) to standard output. Rust rewrite of GNU echo util. -n do not output the trailing newline diff --git a/src/main.rs b/src/main.rs index 05d08a8..f6d8fea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,10 +153,10 @@ fn main() { "--version" => { match VERSION { Some(v) => { - println!("echo-rs {}", v) + println!("gnu-echo-rs {}", v) } None => { - println!("echo-rs was not compiled with a version") + println!("gnu-echo-rs was not compiled with a version") } } exit(0)