Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout: move help strings to markdown file #4806

Merged
merged 2 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/uu/timeout/src/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
7 changes: 7 additions & 0 deletions src/uu/timeout/timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# timeout

```
timeout [OPTION] DURATION COMMAND...
```

Start `COMMAND`, and kill it if still running after `DURATION`.