mktemp

    mktemp command for MoonX.

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

    #mktemp

    Create a unique temporary file or directory through MoonX.

    #Usage

    moonx cli/mktemp -p . sample.XXXXXX moonx cli/mktemp -d -p . sample.XXXXXX

    Create exclusively and print the path. Templates need at least three consecutive X characters in their final X run.

    #Common options

    OptionDescription
    -d, --directorycreate a directory
    -q, --quietsuppress creation and output errors
    -p VALUE, --tmpdir VALUEuse DIR, then TMPDIR, then /tmp
    --suffix VALUEappend SUFFIX to a template ending in X
    --helpShow help.
    --versionShow the version.
    -tuse DIR, then TMPDIR, then /tmp

    #Notes

    • Unsafe -u dry runs are unsupported. Suffixes cannot contain path separators.
    • Without an explicit destination, TMPDIR or /tmp must name an existing directory.

    See the compatibility guide for the supported profile.

    Source Files