changed name to gnu-echo-rs to avoid confusion with echo-rs crate
This commit is contained in:
parent
b79405b3c3
commit
37702c02e3
6
.github/workflows/echo-rs-ci.yml
vendored
6
.github/workflows/echo-rs-ci.yml
vendored
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "echo-rs"
|
||||
name = "gnu-echo-rs"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
12
README.md
12
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 <path/to/echo-rs>`
|
||||
`gnu_echo_tests/test.py -e /bin/echo -b <path/to/gnu-echo-rs>`
|
||||
|
||||
| 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 |
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user