mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #4518 from miles170/uptime-move-help-strings-to-md-file
uptime: move help strings to markdown file
This commit is contained in:
commit
4e03e6254f
2 changed files with 12 additions and 7 deletions
|
@ -11,17 +11,13 @@
|
||||||
use chrono::{Local, TimeZone, Utc};
|
use chrono::{Local, TimeZone, Utc};
|
||||||
use clap::{crate_version, Arg, ArgAction, Command};
|
use clap::{crate_version, Arg, ArgAction, Command};
|
||||||
|
|
||||||
use uucore::format_usage;
|
|
||||||
// import crate time from utmpx
|
|
||||||
pub use uucore::libc;
|
|
||||||
use uucore::libc::time_t;
|
use uucore::libc::time_t;
|
||||||
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
use uucore::error::{UResult, USimpleError};
|
use uucore::error::{UResult, USimpleError};
|
||||||
|
|
||||||
static ABOUT: &str = "Display the current time, the length of time the system has been up,\n\
|
const ABOUT: &str = help_about!("uptime.md");
|
||||||
the number of users on the system, and the average number of jobs\n\
|
const USAGE: &str = help_usage!("uptime.md");
|
||||||
in the run queue over the last 1, 5 and 15 minutes.";
|
|
||||||
const USAGE: &str = "{} [OPTION]...";
|
|
||||||
pub mod options {
|
pub mod options {
|
||||||
pub static SINCE: &str = "since";
|
pub static SINCE: &str = "since";
|
||||||
}
|
}
|
||||||
|
|
9
src/uu/uptime/uptime.md
Normal file
9
src/uu/uptime/uptime.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# uptime
|
||||||
|
|
||||||
|
```
|
||||||
|
uptime [OPTION]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Display the current time, the length of time the system has been up,
|
||||||
|
the number of users on the system, and the average number of jobs
|
||||||
|
in the run queue over the last 1, 5 and 15 minutes.
|
Loading…
Add table
Add a link
Reference in a new issue