summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-25 23:17:24 -0600
committerJeff Carr <[email protected]>2024-12-25 23:17:24 -0600
commitbdaa40c51fe98ff167d2c05a0b21600c95185e67 (patch)
tree7855cd54d052978074cff2ef933c9a7f8cd1ecb5 /argv.go
parent4ec714a678efea22b93833db4d85ac637c5c47c8 (diff)
try to push patchsetsv0.22.28
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go25
1 files changed, 9 insertions, 16 deletions
diff --git a/argv.go b/argv.go
index db94b9c..d386dcf 100644
--- a/argv.go
+++ b/argv.go
@@ -14,19 +14,8 @@ type FindCmd struct {
Private bool `arg:"--private" help:"private repos from your .config/forge/"`
}
-type DoCmd struct {
- List bool `arg:"--list" help:"just show a table of the current state"`
- GitPull bool `arg:"--pull" help:"run 'git pull'"`
- GitReset bool `arg:"--git-reset" help:"run 'git reset --hard'"`
- Scan bool `arg:"--scan" help:"reload protobuf from .git/"`
- Force bool `arg:"--force" help:"force redo things"`
- Dirty bool `arg:"--dirty" help:"update git CheckDirty()"`
- PatchSet string `arg:"--patchset" help:"make patch set"`
-}
-
type args struct {
Find *FindCmd `arg:"subcommand:find" help:"select repos (for example, --all or --mine)"`
- Do *DoCmd `arg:"subcommand:do" help:"do something ('git pull', 'build', 'install', etc)"`
Config bool `arg:"--config" help:"show your .config/forge/ settings"`
ListPatchSet bool `arg:"--list-patchset" help:"list patch sets"`
DryRun bool `arg:"--dry-run" help:"show what would be run"`
@@ -37,6 +26,13 @@ type args struct {
Master bool `arg:"--master" help:"git checkout master"`
URL string `arg:"--connect" help:"gowebd url"`
Register string `arg:"--register" help:"register your git URL (foo.com/mystuff) or (github.com/foo/bar)"`
+ List bool `arg:"--list" help:"just show a table of the current state"`
+ GitPull bool `arg:"--pull" help:"run 'git pull'"`
+ GitReset bool `arg:"--git-reset" help:"run 'git reset --hard'"`
+ Scan bool `arg:"--scan" help:"reload protobuf from .git/"`
+ Force bool `arg:"--force" help:"force redo things"`
+ Dirty bool `arg:"--dirty" help:"update git CheckDirty()"`
+ PatchSet string `arg:"--patchset" help:"make patch set"`
}
func (args) Version() string {
@@ -49,13 +45,10 @@ forge -- in the spirit of things like sourceforge
Examples:
forge --config # shows your forge config (~/.config/forge/)
- forge find --all do --pull # run 'git pull' in every repo
- forge find --mine do --clone # git clone every package you have in your config file
- forge find --all do --build --dry-run # build every binary package (but just show what would run)
- forge find --all --user # checkout the user branch
+ forge find --all --pull # run 'git pull' in every repo
+ forge find --mine --user # checkout the user branch
forge find --all --devel # checkout the devel branch
forge find --all --master # checkout the master branch
- # these options are intended for automation. You probably just want to use the GUI.
`
}