Merge pull request #4799 from m11o/sum-move-strings-to-md-file

sum: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-04-28 16:02:05 +02:00 committed by GitHub
commit 27d6e4c6e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -13,11 +13,10 @@ use std::io::{stdin, Read};
use std::path::Path;
use uucore::display::Quotable;
use uucore::error::{FromIo, UResult, USimpleError};
use uucore::{format_usage, show};
use uucore::{format_usage, help_about, help_usage, show};
static USAGE: &str = "{} [OPTION]... [FILE]...";
static ABOUT: &str = "Checksum and count the blocks in a file.\n\n\
With no FILE, or when FILE is -, read standard input.";
const USAGE: &str = help_usage!("sum.md");
const ABOUT: &str = help_about!("sum.md");
// This can be replaced with usize::div_ceil once it is stabilized.
// This implementation approach is optimized for when `b` is a constant,

9
src/uu/sum/sum.md Normal file
View file

@ -0,0 +1,9 @@
# sum
```
sum [OPTION]... [FILE]..."
```
Checksum and count the blocks in a file.
With no FILE, or when FILE is -, read standard input.