summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/argv.go b/argv.go
index d4f6cd2..5c6a44c 100644
--- a/argv.go
+++ b/argv.go
@@ -22,7 +22,7 @@ type args struct {
Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"`
Gui *EmptyCmd `arg:"subcommand:gui" help:"open the gui"`
Merge *MergeCmd `arg:"subcommand:merge" help:"merge branches"`
- Normal *NormalCmd `arg:"subcommand:user" help:"makes a user branch in every git repo (The Default)"`
+ Mode *ModeCmd `arg:"subcommand:mode" help:"sets the mode (hacking, merging, publishing)"`
Patch *PatchCmd `arg:"subcommand:patch" help:"make patchsets"`
Pull *PullCmd `arg:"subcommand:pull" help:"run 'git pull'"`
Show *ShowCmd `arg:"subcommand:show" help:"print out things"`
@@ -31,6 +31,7 @@ type args struct {
All bool `arg:"--all" help:"git commit --all"`
Force bool `arg:"--force" help:"try to strong-arm things"`
Verbose bool `arg:"--verbose" help:"show more output"`
+ Fix bool `arg:"--fix" help:"try to fix things"`
}
func (args) Examples() string {
@@ -69,10 +70,11 @@ type RepoCmd struct {
// ReadOnly bool `arg:"--readonly" help:"include read-only repos"`
}
-type NormalCmd struct {
- Fix *EmptyCmd `arg:"subcommand:fix" help:"try to fix problems"`
- On *EmptyCmd `arg:"subcommand:on" help:"turn normal mode on"`
- Off *EmptyCmd `arg:"subcommand:off" help:"turn normal mode off"`
+type ModeCmd struct {
+ Master *EmptyCmd `arg:"subcommand:master" help:"keep all repos on the master branch"`
+ Devel *EmptyCmd `arg:"subcommand:devel" help:"use user branches"`
+ User *EmptyCmd `arg:"subcommand:user" help:"use user branches"`
+ Normal *EmptyCmd `arg:"subcommand:normal" help:"use the 'normal' forge development mode"`
}
type CommitCmd struct {
@@ -197,7 +199,7 @@ func (args) Appname() string {
func (a args) DoAutoComplete(pb *prep.Auto) {
if pb.Cmd == "" {
- pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "user", "patch", "pull", "show", "add", "--version", "--force"})
+ pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "mode", "patch", "pull", "show", "add", "--version", "--force"})
} else {
pb.SubCommand(pb.Goargs...)
}