1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Merge pull request #4581 from piotrkwiecinski/touch-move-string-to-md-file

touch: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-23 13:34:26 +01:00 committed by GitHub
commit 6970da3b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -19,10 +19,10 @@ use time::macros::{format_description, offset, time};
use time::Duration;
use uucore::display::Quotable;
use uucore::error::{FromIo, UError, UResult, USimpleError};
use uucore::{format_usage, show};
use uucore::{format_usage, help_about, help_usage, show};
static ABOUT: &str = "Update the access and modification times of each FILE to the current time.";
const USAGE: &str = "{} [OPTION]... [USER]";
const ABOUT: &str = help_about!("touch.md");
const USAGE: &str = help_usage!("touch.md");
pub mod options {
// Both SOURCES and sources are needed as we need to be able to refer to the ArgGroup.
pub static SOURCES: &str = "sources";

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

@ -0,0 +1,7 @@
# touch
```
touch [OPTION]... [USER]
```
Update the access and modification times of each `FILE` to the current time.