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:
|
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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
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
|
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 |
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user