之前已經(jīng)使用Shell 實(shí)現(xiàn)了這個(gè)工作 使用腳本做一些重復(fù)的事情 ,想到正在學(xué)習(xí)Swift,并且前端時(shí)間看看喵神直播編寫(xiě) FengNiao 的過(guò)程,就按照喵神的步驟用swift 實(shí)現(xiàn)了一遍,用起來(lái)是真心爽。附上動(dòng)圖。

安裝方式
- $ git clone https://github.com/yunisSong/YunisTool.git
- $ swift build
- $ swift build -c release
- $ cp ./.build/release/YunisTool /usr/local/bin/YunisTool
使用方式
$ YunisTool -t 使用Swift做一些重復(fù)性的工作 -tags Swift