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

Merge pull request #4552 from piotrkwiecinski/fold-move-strings-to-md-files

fold: move move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-19 16:13:40 +01:00 committed by GitHub
commit f056a74432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

8
src/uu/fold/fold.md Normal file
View file

@ -0,0 +1,8 @@
# fold
```
fold [OPTION]... [FILE]...
```
Writes each file (or standard input if no files are given)
to standard output whilst breaking long lines

View file

@ -13,13 +13,12 @@ use std::io::{stdin, BufRead, BufReader, Read};
use std::path::Path; use std::path::Path;
use uucore::display::Quotable; use uucore::display::Quotable;
use uucore::error::{FromIo, UResult, USimpleError}; use uucore::error::{FromIo, UResult, USimpleError};
use uucore::format_usage; use uucore::{format_usage, help_about, help_usage};
const TAB_WIDTH: usize = 8; const TAB_WIDTH: usize = 8;
static USAGE: &str = "{} [OPTION]... [FILE]..."; const USAGE: &str = help_usage!("fold.md");
static ABOUT: &str = "Writes each file (or standard input if no files are given) const ABOUT: &str = help_about!("fold.md");
to standard output whilst breaking long lines";
mod options { mod options {
pub const BYTES: &str = "bytes"; pub const BYTES: &str = "bytes";