diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 17:57:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 17:57:07 -0600 |
| commit | 390bbae4359ab4630287450af5ad6cb6b53bddf7 (patch) | |
| tree | f526c432a7cb2eaf101ef433c897320c7543aff3 /validate/argv.go | |
| parent | 6b42d07949e7220223662c5e5e01d1223aaf26b9 (diff) | |
stop being lazy. never make directories in go libraries
Diffstat (limited to 'validate/argv.go')
| -rw-r--r-- | validate/argv.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/validate/argv.go b/validate/argv.go deleted file mode 100644 index 35dd9a9..0000000 --- a/validate/argv.go +++ /dev/null @@ -1,42 +0,0 @@ -package main - -import ( - "os" - - "go.wit.com/dev/alexflint/arg" -) - -var argv args - -type args struct { - Repo string `arg:"--repo" help:"repo to check"` - List bool `arg:"--list" default:"false" help:"list repos in your config"` - SaveConfig bool `arg:"--save" default:"false" help:"save your config file at the end"` - Interesting bool `arg:"--interesting" default:"false" help:"something you decided was cool"` -} - -func (a args) Description() string { - return ` - forgeConfig -- add entries to your config files - -This is just example protobuf code to test forgepb is working -but it could be used to automagically create a config file too. - -If you need to change your config file, just edit the forge.text or forge.json -files then remove the forge.pb and ConfigLoad() will attempt to load those files instead -` -} - -func (args) Version() string { - return "virtigo " + VERSION -} - -func init() { - var pp *arg.Parser - pp = arg.MustParse(&argv) - - if pp == nil { - pp.WriteHelp(os.Stdout) - os.Exit(0) - } -} |
