diff options
| author | Jeff Carr <[email protected]> | 2025-01-06 21:53:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-06 21:53:20 -0600 |
| commit | 89d034c3101c0ac2192b3c1278d78cebff889543 (patch) | |
| tree | bdaa22063a57f8e84b8c21555a3b716513b7a73d /forgeConfig/argv.go | |
| parent | 98b0d445bc513c5439421d1ec0d32874fc1350f9 (diff) | |
merged with forge. unbelievable. thanks Alex Flint!v0.0.19
Diffstat (limited to 'forgeConfig/argv.go')
| -rw-r--r-- | forgeConfig/argv.go | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/forgeConfig/argv.go b/forgeConfig/argv.go deleted file mode 100644 index a39509f..0000000 --- a/forgeConfig/argv.go +++ /dev/null @@ -1,53 +0,0 @@ -package main - -import ( - "os" - - "go.wit.com/dev/alexflint/arg" -) - -var argv args - -type args struct { - ConfigDir string `arg:"env:FORGE_HOME" help:"defaults to ~/.config/forge/"` - List bool `arg:"--list" default:"false" help:"list repos in your config"` - Add bool `arg:"--add" default:"false" help:"add a new repo"` - Delete bool `arg:"--delete" default:"false" help:"delete a repo"` - Update bool `arg:"--update" default:"false" help:"update a repo"` - GoPath string `arg:"--gopath" help:"gopath of the repo"` - Directory bool `arg:"--directory" default:"false" help:"repo is a directory to match against"` - ReadOnly bool `arg:"--readonly" default:"false" help:"repo is readonly"` - Writable bool `arg:"--writable" default:"false" help:"repo is writable"` - Favorite bool `arg:"--favorite" default:"false" help:"forge will always go-clone or git clone this"` - Private bool `arg:"--private" default:"false" help:"repo can not be published"` - Interesting bool `arg:"--interesting" default:"false" help:"something you decided was cool"` - Master string `arg:"--master" help:"the git 'master' or 'main' branch name"` - Devel string `arg:"--devel" help:"the git devel branch name"` - User string `arg:"--user" help:"the git user branch name"` -} - -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) - } -} |
