mirror of
https://github.com/uutils/coreutils
synced 2025-01-05 17:59:00 +00:00
Merge pull request #4829 from m11o/tsort-move-strings-to-md-file
tsort: move help strings to markdown file
This commit is contained in:
commit
d441d71aac
2 changed files with 13 additions and 5 deletions
|
@ -12,12 +12,10 @@ 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};
|
||||||
|
|
||||||
static ABOUT: &str = "Topological sort the strings in FILE.
|
const ABOUT: &str = help_about!("tsort.md");
|
||||||
Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline).
|
const USAGE: &str = help_usage!("tsort.md");
|
||||||
If FILE is not passed in, stdin is used instead.";
|
|
||||||
static USAGE: &str = "{} [OPTIONS] FILE";
|
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const FILE: &str = "file";
|
pub const FILE: &str = "file";
|
||||||
|
|
10
src/uu/tsort/tsort.md
Normal file
10
src/uu/tsort/tsort.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# tsort
|
||||||
|
|
||||||
|
```
|
||||||
|
tsort [OPTIONS] FILE
|
||||||
|
```
|
||||||
|
|
||||||
|
Topological sort the strings in FILE.
|
||||||
|
Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline), ordering them based on dependencies in a directed acyclic graph (DAG).
|
||||||
|
Useful for scheduling and determining execution order.
|
||||||
|
If FILE is not passed in, stdin is used instead.
|
Loading…
Reference in a new issue