mktemp

    mktemp command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.4
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    89

    #mktemp

    Create unique temporary paths for MoonX.

    moonx cli/mktemp@0.1.4 [OPTION]... [TEMPLATE]

    #Supported scope

    Create a file or directory without overwriting existing entries. The final X run in a template must contain at least three characters.

    #Options

    OptionDescription
    -d, --directorycreate a directory
    -p DIR, --tmpdir[=DIR]use DIR, then TMPDIR, then /tmp
    -tprefer TMPDIR; reject template directories
    --suffix=SUFFIXappend SUFFIX to a template ending in X
    -q, --quietsuppress creation and output errors
    --help / --versionShow help / package version.

    #Limitations

    • Unsafe -u dry runs are unsupported. Suffixes cannot contain directory separators.
    • Without a destination, the default uses TMPDIR or /tmp; that directory must exist.

    #Examples

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

    Source Files