1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Merge pull request #4575 from piotrkwiecinski/hostid-move-string-to-md-file

hostid: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-22 16:21:08 +01:00 committed by GitHub
commit f64905f309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

7
src/uu/hostid/hostid.md Normal file
View file

@ -0,0 +1,7 @@
# hostid
```
hostid [options]
```
Print the numeric identifier (in hexadecimal) for the current host

View file

@ -9,10 +9,10 @@
use clap::{crate_version, Command};
use libc::c_long;
use uucore::{error::UResult, format_usage};
use uucore::{error::UResult, format_usage, help_about, help_usage};
const USAGE: &str = "{} [options]";
const ABOUT: &str = "Print the numeric identifier (in hexadecimal) for the current host";
const USAGE: &str = help_usage!("hostid.md");
const ABOUT: &str = help_about!("hostid.md");
// currently rust libc interface doesn't include gethostid
extern "C" {