Merge pull request #4390 from papparapa/yes-move-help-strings-to-md-file

yes: move help strings to markdown file
This commit is contained in:
Terts Diepraam 2023-02-19 18:35:53 +01:00 committed by GitHub
commit 8678530095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -12,13 +12,13 @@ use std::io::{self, Result, Write};
use clap::{Arg, ArgAction, Command}; use clap::{Arg, ArgAction, Command};
use uucore::error::{UResult, USimpleError}; use uucore::error::{UResult, USimpleError};
use uucore::format_usage; use uucore::{format_usage, help_about, help_usage};
#[cfg(any(target_os = "linux", target_os = "android"))] #[cfg(any(target_os = "linux", target_os = "android"))]
mod splice; mod splice;
const ABOUT: &str = "Repeatedly display a line with STRING (or 'y')"; const ABOUT: &str = help_about!("yes.md");
const USAGE: &str = "{} [STRING]..."; const USAGE: &str = help_usage!("yes.md");
// it's possible that using a smaller or larger buffer might provide better performance on some // it's possible that using a smaller or larger buffer might provide better performance on some
// systems, but honestly this is good enough // systems, but honestly this is good enough

7
src/uu/yes/yes.md Normal file
View file

@ -0,0 +1,7 @@
# yes
```
yes [STRING]...
```
Repeatedly display a line with STRING (or 'y')