CLI ls -R
with Swift.
output.mov
$ xcrun -sdk macosx \
swiftc \
CommandLSR/main.swift \
CommandLSR/lsr.swift \
CommandLSR/FileManagerHelper.swift \
-o lsr
$ ls lsr
lsr
Note that need to compile before doing usage.
# man: lsr <path>
$ ./lsr .
├─ swift-ls-command
├─ CommandLSR.xcodeproj
│ ├─ project.pbxproj
│ ├─ xcuserdata
│ │ └─ shun.xcuserdatad
│ │ └─ xcschemes
│ │ └─ xcschememanagement.plist
...
│ ├─ COMMIT_EDITMSG
│ └─ FETCH_HEAD
└─ lsr
93 directories, 116 files
MIT