Skip to content

Commit 7c4c71b

Browse files
committed
Try adding cmd.exe example
1 parent 8fda140 commit 7c4c71b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/convert.cmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:: This example demonstrates the `convert` command in the Windows default
2+
:: terminal (`cmd.exe`).
3+
:: This file can be directly run:
4+
:: - first install `unix-permissions`
5+
:: - then `cmd /q /d /s /c node_modules\unix-permissions\examples\convert.cmd`
6+
7+
call npx unix-permissions convert.symbolic 111
8+
:: a=x
9+
10+
call npx unix-permissions convert.octal o+x
11+
:: +0001
12+
13+
call npx unix-permissions convert.octal o=x
14+
:: 0001

0 commit comments

Comments
 (0)