mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
yes: move help strings to markdown file
This commit is contained in:
parent
f77a44df8b
commit
044f3d3a43
2 changed files with 10 additions and 3 deletions
|
@ -12,13 +12,13 @@ use std::io::{self, Result, Write};
|
|||
|
||||
use clap::{Arg, ArgAction, Command};
|
||||
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"))]
|
||||
mod splice;
|
||||
|
||||
const ABOUT: &str = "Repeatedly display a line with STRING (or 'y')";
|
||||
const USAGE: &str = "{} [STRING]...";
|
||||
const ABOUT: &str = help_about!("yes.md");
|
||||
const USAGE: &str = help_usage!("yes.md");
|
||||
|
||||
// it's possible that using a smaller or larger buffer might provide better performance on some
|
||||
// systems, but honestly this is good enough
|
||||
|
|
7
src/uu/yes/yes.md
Normal file
7
src/uu/yes/yes.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# yes
|
||||
|
||||
```
|
||||
yes [STRING]...
|
||||
```
|
||||
|
||||
Repeatedly display a line with STRING (or 'y')
|
Loading…
Add table
Add a link
Reference in a new issue