mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
Merge pull request #4375 from papparapa/cat-move-help-strings-to-md-file
cat: move help strings to markdown file
This commit is contained in:
commit
ef9d39e046
2 changed files with 14 additions and 4 deletions
11
src/uu/cat/cat.md
Normal file
11
src/uu/cat/cat.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# cat
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
```
|
||||||
|
cat [OPTION]... [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
Concatenate FILE(s), or standard input, to standard output
|
||||||
|
With no FILE, or when FILE is -, read standard input.
|
|
@ -33,11 +33,10 @@ use std::net::Shutdown;
|
||||||
use std::os::unix::fs::FileTypeExt;
|
use std::os::unix::fs::FileTypeExt;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::os::unix::net::UnixStream;
|
use std::os::unix::net::UnixStream;
|
||||||
use uucore::format_usage;
|
use uucore::{format_usage, help_section, help_usage};
|
||||||
|
|
||||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
const USAGE: &str = help_usage!("cat.md");
|
||||||
static ABOUT: &str = "Concatenate FILE(s), or standard input, to standard output
|
const ABOUT: &str = help_section!("about", "cat.md");
|
||||||
With no FILE, or when FILE is -, read standard input.";
|
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
enum CatError {
|
enum CatError {
|
||||||
|
|
Loading…
Reference in a new issue