SwiftLibrary
SwiftLibrary copied to clipboard
🔍 Search for swift packages right from your command line
Two things here: 1. Apodidae shouldn't be installed by downloading a binary from the release and being done with it. Ain't nobody should be trusting that. Download archive from tagged...
Currently you can only search repo strings: > The only extra logic is that forks are searched as well if a query in the form of a github slug, e.g....
There is no help per subcommand. E.g. `swift catalog search` mentions "<query>", but doesn't say what that can be. Just a string?
Only show the first ~10 on searching. Add a flag/message like cargo `... and 41 crates more (use --limit N to see more)`.
There's got to be a better way. Played around with [yanagiba/swift-ast](https://github.com/yanagiba/swift-ast) for a bit, traversing works well, but couldn't find a *nice* way of inserting stuff and re-building the parsed...
Flags should be command specific and main.swift should contain as little code as possible. Using https://github.com/vapor/console or something similar should clear a lot of that up.
This might be a bit out of reach, but it feels like it might be nice to have. On adding a dependency apodidae adds it to the list of dependencies...