This is a SlackBot made in Swift to announce what percentage of your codebase is in Obj-C and what percentage is in Swift. The name is based off of the original founder of Swift: Chris Lattner.
You will need your own API key. Also, you will need to specify your preferred timezone.
- Set an environment variable with your Slack key like SLACK_KEY
- Run the command below:
For more information about building and releasing, please refer to this post from John Sundell, the master of command-line Swift: https://www.swiftbysundell.com/posts/building-a-command-line-tool-using-the-swift-package-manager
Tested on macOS High Sierra only, not Linux.
Make a Brew tap: https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap
Release binary on Homebrew
Make LattnerBot say the change in number of lines of code
Add more tests to ClockWrapper: 1 for when no objc, 1 for when no objc header, and one for when no swift
Add proper release tag
Implement test for Slack part
Make expressive README
Try out, improve areas lacking
Replace cloc with github API so bot doesn't need to be on local machine
- Maybe asking about the the Swift 4.0 branch: https://github.com/nerdishbynature/octokit.swift
- Then using this API: https://developer.github.com/v3/repos/#list-languages
OR: use light persistance framework thats SPM compatible or plain old JSON
Or add coverage reports