Overview

CLI ls -R with Swift.

output.mov

How to compile

$ xcrun -sdk macosx \
  swiftc \
    CommandLSR/main.swift \
    CommandLSR/lsr.swift \
    CommandLSR/FileManagerHelper.swift \
  -o lsr
$ ls lsr
lsr

Usage

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

LICENSE

MIT