diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -22,11 +22,12 @@ 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:normal" help:"set every repo to the default state for software development"` + Normal *NormalCmd `arg:"subcommand:user" help:"makes a user branch in every git repo"` 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"` Dev *DevCmd `arg:"subcommand:dev" help:"features under development"` + Add *EmptyCmd `arg:"subcommand:add" help:"Scan and add any git repos in your current directory"` 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"` @@ -34,9 +35,10 @@ type args struct { func (args) Examples() string { var out string + out += "forge add # scan your current directory for all git repos\n" + out += "forge user fix # the defaults for 'normal' forge distributed development (makes a user branch in every git repo)\n" out += "forge pull --force # 'git pull' on all repos\n" out += "forge merge --all # merge all patches to devel & master\n" - out += "forge normal fix # the defaults for 'normal' forge distributed development (makes local user branches)\n" out += "forge reset fix # smartly restore all git repos to the upstream state (removes changes forge might have made)\n" return out } @@ -194,7 +196,7 @@ func (args) Appname() string { func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "normal", "patch", "pull", "show", "--version"}) + pb.Autocomplete3([]string{"checkout", "reset", "commit", "config", "gui", "merge", "user", "patch", "pull", "show", "add", "--version"}) } else { pb.SubCommand(pb.Goargs...) } |
