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:
--json to output the final report in json
--debug to output additional verbose logs for debugging
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?
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 projectHave the flags:
--json
to output the final report in json--debug
to output additional verbose logs for debuggingExamples:
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?