changed name to gnu-echo-rs to avoid confusion with echo-rs crate

This commit is contained in:
Lu 2023-07-02 15:39:43 +02:00
parent b79405b3c3
commit 37702c02e3
5 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
name: echo-rs CI name: gnu-echo-rs CI
on: on:
push: push:
@ -13,14 +13,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up echo-rs - name: Set up gnu-echo-rs
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install cargo-audit - name: Install cargo-audit
run: cargo install cargo-audit run: cargo install cargo-audit
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: test - 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 - name: Clippy
run: cargo clippy --verbose -- -D warnings run: cargo clippy --verbose -- -D warnings
- name: Audit - name: Audit

View File

@ -1,5 +1,5 @@
[package] [package]
name = "echo-rs" name = "gnu-echo-rs"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View File

@ -1,4 +1,4 @@
# echo-rs # gnu-echo-rs
My rewrite of the echo GNU core utility in rust My rewrite of the echo GNU core utility in rust
@ -7,11 +7,11 @@ author: [Lu Baumann](https://blog.surferlul.me/)
## usage ## usage
refer to `echo-rs --help`: refer to `gnu-echo-rs --help`:
``` ```
Usage: echo-rs [SHORT-OPTION]... [STRING]... Usage: gnu-echo-rs [SHORT-OPTION]... [STRING]...
or: echo-rs LONG-OPTION or: gnu-echo-rs LONG-OPTION
Echo the STRING(s) to standard output. Rust rewrite of GNU echo util. Echo the STRING(s) to standard output. Rust rewrite of GNU echo util.
-n do not output the trailing newline -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 test script requires python >= 3.10
`gnu_echo_tests/test.py -e /bin/echo -b <path/to/echo-rs>` `gnu_echo_tests/test.py -e /bin/echo -b <path/to/gnu-echo-rs>`
| parameter | value | | parameter | value |
| ---------------- | --------------------------------------- | | ---------------- | --------------------------------------- |
| `-e`, `--echo` | path to echo executable to test against | | `-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 |

View File

@ -5,8 +5,8 @@ use regex::Regex;
pub const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION"); pub const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION");
pub const HELP_DIALOG: &str = r#" pub const HELP_DIALOG: &str = r#"
Usage: echo-rs [SHORT-OPTION]... [STRING]... Usage: gnu-echo-rs [SHORT-OPTION]... [STRING]...
or: echo-rs LONG-OPTION or: gnu-echo-rs LONG-OPTION
Echo the STRING(s) to standard output. Rust rewrite of GNU echo util. Echo the STRING(s) to standard output. Rust rewrite of GNU echo util.
-n do not output the trailing newline -n do not output the trailing newline

View File

@ -153,10 +153,10 @@ fn main() {
"--version" => { "--version" => {
match VERSION { match VERSION {
Some(v) => { Some(v) => {
println!("echo-rs {}", v) println!("gnu-echo-rs {}", v)
} }
None => { None => {
println!("echo-rs was not compiled with a version") println!("gnu-echo-rs was not compiled with a version")
} }
} }
exit(0) exit(0)