mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
yes: move help strings to markdown file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# yes
|
||||
|
||||
```
|
||||
yes [STRING]...
|
||||
```
|
||||
|
||||
Repeatedly display a line with STRING (or 'y')
|
||||
Reference in New Issue
Block a user