summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-05 12:29:47 -0600
committerJeff Carr <[email protected]>2024-12-05 12:29:47 -0600
commit816760d1372d6d1922a9916f3150e49f3fd562cd (patch)
tree0889b24fabb5d35dc0db53d0bbf71a985427c89b /argv.go
parent0463030e80f480f0d38989f4231db8b1651b40bc (diff)
developing on this now
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go47
1 files changed, 24 insertions, 23 deletions
diff --git a/argv.go b/argv.go
index 809b7d8..ff8a1f0 100644
--- a/argv.go
+++ b/argv.go
@@ -7,22 +7,24 @@ package main
var argv args
type args struct {
- List bool `arg:"--list" help:"list found repos"`
- ListConf bool `arg:"--list-conf" help:"list your .config/forge/ configuration"`
- Scan bool `arg:"--scan" help:"rescan your repos"`
- ReadOnly bool `arg:"--readonly" help:"include read-only repos"`
- Mine bool `arg:"--mine" help:"download private and writeable repos"`
- Favorites bool `arg:"--favorites" help:"download repos marked as favorites"`
- GitPull bool `arg:"--git-pull" help:"run 'git pull' on all your repos"`
- Build bool `arg:"--build" default:"true" help:"also try to build it"`
- Install bool `arg:"--install" help:"try to install every binary package"`
- RedoGoMod bool `arg:"--RedoGoMod" help:"remake all the go.sum and go.mod files"`
- DryRun bool `arg:"--dry-run" help:"show what would be run"`
- Fix bool `arg:"--fix" help:"fix config, save config & exit"`
- Clone bool `arg:"--clone" help:"go-clone things you are missing"`
- Force bool `arg:"--force" help:"force redo go-clone"`
- Erase bool `arg:"--erase" help:"erase"`
- Private bool `arg:"--private" help:"list private repos in .config/forge/"`
+ Config bool `arg:"--config" help:"work from your .config/forge/ configuration"`
+ FindAll bool `arg:"--find-all" help:"select every repo"`
+ FindReadOnly bool `arg:"--find-readonly" help:"include read-only repos"`
+ FindMine bool `arg:"--find-mine" help:"download private and writeable repos"`
+ FindFavorites bool `arg:"--find-favorites" help:"download repos marked as favorites"`
+ FindPrivate bool `arg:"--find-private" help:"list private repos in .config/forge/"`
+ DoList bool `arg:"--do-list" help:"list found repos"`
+ DoScan bool `arg:"--do-scan" help:"rescan your repos"`
+ DoClone bool `arg:"--do-clone" help:"go-clone things you are missing"`
+ DoForce bool `arg:"--do-force" help:"force redo go-clone"`
+ DoGitPull bool `arg:"--do-git-pull" help:"run 'git pull' on all your repos"`
+ DoBuild bool `arg:"--do-build" default:"true" help:"also try to build it"`
+ DoInstall bool `arg:"--do-install" help:"try to install every binary package"`
+ DoRedoGoMod bool `arg:"--do-RedoGoMod" help:"remake all the go.sum and go.mod files"`
+ DoErase bool `arg:"--do-EraseGoMod" help:"erase the go.mod and go.sum files"`
+ DoGui bool `arg:"--do-gui" help:"test the gui"`
+ DryRun bool `arg:"--dry-run" help:"show what would be run"`
+ Fix bool `arg:"--fix" help:"fix config, save config & exit"`
}
func (args) Version() string {
@@ -33,14 +35,13 @@ func (a args) Description() string {
return `
forge -- in the spirit of things like sourceforge
-Repository configuration is stored in .config/forge/forge.text
-
Examples:
- forge --list # list found repos
- forge --mine # download your private and writable repos
- forge --favorites # clone repos you marked as favorites
+ forge --config # shows your forge config (~/.config/forge/)
+ forge --mine # find your private and writable repos
+ forge --favorites # find configured as favorites
+
forge --git-pull # run 'git pull' in every repo
- forge --build # build every binary package
- forge --install # install every binary package
+ forge --build --dry-run # build every binary package (but just show what would run)
+ forge --mine --clone # clone every package you have in your config file
`
}