goreapers / gograveyard

The Go project undertaker: check go.mod dependency's health
MIT License
1 stars 0 forks source link

cli: create initial stub #1

Closed powersj closed 1 year ago

powersj commented 1 year ago

Create basic CLI app, using only the std library, to take in:

1) a URL to a project to analyze 2) path to a locally checked-out project

In both cases, the project will search for all the go.mod in the project

Have the flags:

Examples:

gograveyard run https://github.com/influxdata/telegraf
gograveyard run telegraf

Open questions:

1) Should this be behind a "verb" like run or just execute as part of the root subcommand? For example, what if we added at a later date additional subcommands? (e.g. gograveyard run <file>) 2) Should the URL and the local path be direct to the go.mod file itself? Or should we assume it is in the root of that directory? For example, what if a project has a go.mod or subprojects?