Closed picatz closed 6 years ago
I suggest we use cobra. It seems like a well tested framework and the community standard at the moment.
@codingo @Mzack9999 Do either of you have any thoughts on this?
A basic, working cobra command-line application has been merged in master with https://github.com/subfinder/research/pull/46
$ go get github.com/subfinder/research/subzero
$ subzero
Usage:
subzero [command]
Available Commands:
enumerate Enumerate subdomains for the given domains.
help Help about any command
Flags:
-h, --help help for subzero
Use "subzero [command] --help" for more information about a command.
You can use the enumerate
command to enumerate 1 or more domains subdomains with the currently ported over sources.
$ subzero enumerate google.com --verbose
I think we're going to end up using cobra. 🐍
We should figure out which direction we want to go in to provide a classier, more robust command-line application experience for users in v2. There are a few golang command-line application framework choices we may want to consider, starting with:
cobra
urfave
odin
I've used
urfave
before, and really liked it. I'm currently experimenting withcobra
, though I'm open to something else.