subfinder / research

❄️ Research project for SubFinder core API V2
MIT License
35 stars 8 forks source link

investigate command-line application framework choices #44

Closed picatz closed 6 years ago

picatz commented 6 years ago

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:

I've used urfave before, and really liked it. I'm currently experimenting with cobra, though I'm open to something else.

Ice3man543 commented 6 years ago

I suggest we use cobra. It seems like a well tested framework and the community standard at the moment.

picatz commented 6 years ago

@codingo @Mzack9999 Do either of you have any thoughts on this?

picatz commented 6 years ago

A basic, working cobra command-line application has been merged in master with https://github.com/subfinder/research/pull/46

Install

$ go get github.com/subfinder/research/subzero

Usage

$ 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
picatz commented 6 years ago

I think we're going to end up using cobra. 🐍