mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 23:32:39 +00:00
timeout: move help strings to markdown file (#4806)
* timeout: move help strings to markdown file
This commit is contained in:
parent
400cf11620
commit
e46b05722f
2 changed files with 10 additions and 3 deletions
|
@ -22,12 +22,12 @@ use uucore::process::ChildExt;
|
||||||
use uucore::signals::enable_pipe_errors;
|
use uucore::signals::enable_pipe_errors;
|
||||||
|
|
||||||
use uucore::{
|
use uucore::{
|
||||||
format_usage, show_error,
|
format_usage, help_about, help_usage, show_error,
|
||||||
signals::{signal_by_name_or_value, signal_name_by_value},
|
signals::{signal_by_name_or_value, signal_name_by_value},
|
||||||
};
|
};
|
||||||
|
|
||||||
static ABOUT: &str = "Start COMMAND, and kill it if still running after DURATION.";
|
const ABOUT: &str = help_about!("timeout.md");
|
||||||
const USAGE: &str = "{} [OPTION] DURATION COMMAND...";
|
const USAGE: &str = help_usage!("timeout.md");
|
||||||
|
|
||||||
pub mod options {
|
pub mod options {
|
||||||
pub static FOREGROUND: &str = "foreground";
|
pub static FOREGROUND: &str = "foreground";
|
||||||
|
|
7
src/uu/timeout/timeout.md
Normal file
7
src/uu/timeout/timeout.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# timeout
|
||||||
|
|
||||||
|
```
|
||||||
|
timeout [OPTION] DURATION COMMAND...
|
||||||
|
```
|
||||||
|
|
||||||
|
Start `COMMAND`, and kill it if still running after `DURATION`.
|
Loading…
Reference in a new issue