forked from extern/nushell
Implement rest of touch
flags (#5119)
* Add timestamp flag to `touch` command * Add modify flag to `touch` command * Add date flag to `touch` command * Remove unnecessary `touch` test and fix tests setups * Change `touch` flags descriptions * Update `touch` example * Add reference flag to `touch` command * Add access flag to `touch` command * Add no-create flag to `touch` command * Replace `unwrap` with `expect`
This commit is contained in:
@ -269,6 +269,14 @@ Either make sure {0} is a string, or add a 'to_string' entry for it in ENV_CONVE
|
||||
#[diagnostic(code(nu::shell::create_not_possible), url(docsrs))]
|
||||
CreateNotPossible(String, #[label("{0}")] Span),
|
||||
|
||||
#[error("Not possible to change the access time")]
|
||||
#[diagnostic(code(nu::shell::change_access_time_not_possible), url(docsrs))]
|
||||
ChangeAccessTimeNotPossible(String, #[label("{0}")] Span),
|
||||
|
||||
#[error("Not possible to change the modified time")]
|
||||
#[diagnostic(code(nu::shell::change_modified_time_not_possible), url(docsrs))]
|
||||
ChangeModifiedTimeNotPossible(String, #[label("{0}")] Span),
|
||||
|
||||
#[error("Remove not possible")]
|
||||
#[diagnostic(code(nu::shell::remove_not_possible), url(docsrs))]
|
||||
RemoveNotPossible(String, #[label("{0}")] Span),
|
||||
|
Reference in New Issue
Block a user