nushell/crates/nu-command/src/filesystem
Ludwig Austermann 8429aec57f
readd update flag to cp command (#10824)
# Description
- this PR should close #10819


# User-Facing Changes
Behaviour is similar to pre 0.86.0 behaviour of the cp command and
should as such not have a user-facing change, only compared to the
current version, were the option is readded.


# After Submitting
I guess the documentation will be automatically updated and as this
feature is no further highlighted, probably, no more work will be needed
here.

# Considerations
coreutils actually allows a third option:
```
pub enum UpdateMode {
    // --update=`all`,
    ReplaceAll,
    // --update=`none`
    ReplaceNone,
    // --update=`older`
    // -u
    ReplaceIfOlder,
}
```
namely `ReplaceNone`, which I have not added. Also I think that
specifying `--update 'abc'` is non functional.
2023-10-25 11:30:13 +02:00
..
cd.rs Remove cd w/ abbreviations (#10588) 2023-10-03 10:51:46 +13:00
cp.rs Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
glob.rs glob with ../ prefix now works; (#10504) 2023-09-29 06:48:55 -05:00
ls.rs Finish removing profile command and related data (#10807) 2023-10-22 14:06:53 +03:00
mkdir.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
mod.rs Remove cd w/ abbreviations (#10588) 2023-10-03 10:51:46 +13:00
mv.rs Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
open.rs allow multiple extensions (#10593) 2023-10-13 13:45:36 -05:00
rm.rs Allow filesystem commands to access files with glob metachars in name (#10694) 2023-10-18 13:31:15 -05:00
save.rs Invert &Options to Option<&T> (#10315) 2023-09-13 07:00:58 +08:00
start.rs fix clippy (#10659) 2023-10-10 03:31:15 +13:00
touch.rs Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
ucp.rs readd update flag to cp command (#10824) 2023-10-25 11:30:13 +02:00
util.rs Fix cp -u/mv -u when the dst doesn't exist (#9662) 2023-07-12 18:12:59 +02:00
watch.rs show the full directory / file path in "directory not found" error (#10430) 2023-09-26 17:38:58 +08:00