1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

yes: move help strings to markdown file

This commit is contained in:
Koki Ueha 2023-02-19 14:54:33 +00:00
parent f77a44df8b
commit 044f3d3a43
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 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
View file

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