This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. copy file to $PATH somewhere | |
| // 2. chmod a+x it | |
| // 3. run with `tttt` or `tttt [task to track]` | |
| // 4. check out ~/Desktop/todo.txt | |
| #!/usr/bin/env swift | |
| import Foundation | |
| let dateFormatter = DateFormatter() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env swift | |
| // | |
| // list-swift-features.swift | |
| // | |
| // Lists the feature names accepted by `Package.swift`'s | |
| // .enableUpcomingFeature("…") and .enableExperimentalFeature("…") | |
| // for the *active* Swift toolchain, annotated against your effective | |
| // language mode (upcoming flags that are already default-on are redundant). | |
| // | |
| // How it works — no C-grammar parsing: |
OlderNewer