sleep

    sleep command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.2
    License
    Apache-2.0
    Last updated
    last month
    Downloads
    162

    #sleep for moonx

    Version 0.2.2 behavior is documented here. The support record separates local verification from published MoonX behavior; moonx examples use registry releases.

    Pause for a number of seconds:

    moonx cli/sleep 2 moonx cli/sleep 0.5 moonx cli/sleep 1m 30s # arguments are summed

    NUMBER may be fractional; suffixes s, m, h, d scale it. With multiple arguments, sleeps for their sum. The delay rounds up to whole milliseconds and is capped at the runtime timer limit of 2,147,483,647 ms (about 24.9 days), including when the sum exceeds that limit.

    --help and --version are handled without sleeping. The version token matches the package version in moon.mod. -- explicitly ends option parsing before a duration operand.

    #Standalone metadata

    Standalone --version prints exactly sleep 0.2.2 followed by one newline. Standalone --help starts with Usage: sleep, lists both metadata options, and ends with a newline. Both write to stdout, leave stdin unread, and exit with status 0. Exact-version publication and verification remain recorded separately in the support record.