summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go23
1 files changed, 13 insertions, 10 deletions
diff --git a/argv.go b/argv.go
index e013e1b..c5594b7 100644
--- a/argv.go
+++ b/argv.go
@@ -36,11 +36,14 @@ 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 show # show the state of all your repos\n"
+ out += "forge normal # the defaults for 'normal' forge distributed development\n"
+ out += " # it will makes a user branch in every git repo\n"
+ out += "forge clean # removes changes forge might have made\n"
+ out += " # purges all untracked git files, etc\n"
out += "forge pull --force # 'git pull' on all repos\n"
out += "forge merge --all # merge all patches to devel & master\n"
- out += "forge reset fix # smartly restore all git repos to the upstream state (removes changes forge might have made)\n"
+ out += "forge add # scan your current directory for all git repos\n"
return out
}
@@ -83,15 +86,15 @@ type CommitCmd struct {
}
type DevCmd struct {
- Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"`
- Build string `arg:"--build" help:"build a repo"`
- Install string `arg:"--install" help:"install a repo"`
- BuildForge bool `arg:"--forge-rebuild" help:"download and rebuild forge"`
- URL string `arg:"--connect" help:"forge url"`
+ Config *ConfigCmd `arg:"subcommand:config" help:"show your .config/forge/ settings"`
+ Generate *EmptyCmd `arg:"subcommand:generate" help:"run go generate"`
+ Build *EmptyCmd `arg:"subcommand:build" help:"build this repo"`
+ Install *EmptyCmd `arg:"subcommand:install" help:"build & install this repo"`
DeleteUser bool `arg:"--delete-user" help:"delete all user branches (checks for safety)"`
- Fix bool `arg:"--fix" help:"actually do it"`
- Prune bool `arg:"--prune" help:"git fetch prune"`
+ BuildForge bool `arg:"--forge-rebuild" help:"download all the forge sources and rebuild forge"`
+ URL string `arg:"--connect" help:"forge url"`
Untracked bool `arg:"--untracked" help:"git untracked file list"`
+ Prune bool `arg:"--prune" help:"'git fetch --prune' everywhere"`
}
type CleanCmd struct {