test command for MoonX.
moonx cli/test@0.2.3 EXPRESSION| Option | Description |
|---|---|
| -n / -z STRING | Test nonempty / empty strings. |
| = / != / -eq / -ne / -gt / -ge / -lt / -le | Compare strings or integers. |
| -e / -f / -d / -L / -h / -p / -S / -b / -c | Test existence or file type. |
| -r / -w / -x / -s / -N | Test access, nonempty size or modification since access. |
| -nt / -ot | Compare file modification times. |
| ! / -a / -o / ( ) | Negate or combine expressions. |
| --help / --version | Show help / package version. |
moonx cli/test@0.2.3 -f notes.txt
moonx cli/test@0.2.3 3 -gt 2