timeout: move help strings to markdown file (#4806)

* timeout: move help strings to markdown file
This commit is contained in:
Masahito Osako
2023-04-30 08:51:14 +02:00
committed by GitHub
parent 400cf11620
commit e46b05722f
2 changed files with 10 additions and 3 deletions
+3 -3
View File
@@ -22,12 +22,12 @@ use uucore::process::ChildExt;
use uucore::signals::enable_pipe_errors;
use uucore::{
format_usage, show_error,
format_usage, help_about, help_usage, show_error,
signals::{signal_by_name_or_value, signal_name_by_value},
};
static ABOUT: &str = "Start COMMAND, and kill it if still running after DURATION.";
const USAGE: &str = "{} [OPTION] DURATION COMMAND...";
const ABOUT: &str = help_about!("timeout.md");
const USAGE: &str = help_usage!("timeout.md");
pub mod options {
pub static FOREGROUND: &str = "foreground";
+7
View File
@@ -0,0 +1,7 @@
# timeout
```
timeout [OPTION] DURATION COMMAND...
```
Start `COMMAND`, and kill it if still running after `DURATION`.