cp

    cp command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.7
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    165

    #cp

    Copy files and directory trees to new destinations through MoonX.

    #Usage

    moonx cli/cp --no-preserve=mode source.txt new.txt moonx cli/cp --no-preserve=mode -R source-dir new-dir

    Copying requires --no-preserve=mode. Recursive copies check the source tree before creating destinations; explicit skip modes can succeed without copying.

    #Common options

    OptionDescription
    -R, --recursiveCopy directory trees.
    -n, --no-clobberSkip existing targets.
    --update=MODESelect the documented destination update policy.
    -L, --dereferenceSelect source-link traversal.
    -T, --no-target-directoryTreat destination as a complete path.
    --no-preserve VALUERequired for copying to a new destination.
    -v, --verboseShow copied paths.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Existing-file replacement, default mode preservation and archive copies are unsupported. Parsed -f, -i and backup options do not enable these operations.
    • Source-link traversal must be selected explicitly where needed. Cycles and destinations inside the source are rejected.

    See the compatibility guide for the supported profile.

    Source Files