summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 04:21:37 -0500
committerJeff Carr <[email protected]>2025-10-03 04:21:37 -0500
commitf4ce449e7ba5de977de8e8d100bf26dabafb97be (patch)
treeffa10311c38658280c80c5168a6dd4269a26c33e /argv.go
parent13dccc522038f8b4303972e3e78b7867193fdbeb (diff)
rename file
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index 165d5c1..06251d9 100644
--- a/argv.go
+++ b/argv.go
@@ -29,7 +29,7 @@ type args struct {
Test *EmptyCmd `arg:"subcommand:test" help:"test build everything first"`
Clone *EmptyCmd `arg:"subcommand:repomap-clone" help:"go-clone from a gowebd repomap"`
Rdate *EmptyCmd `arg:"subcommand:rdate" help:"standard rdate"`
- Upgrade *DefaultCmd `arg:"subcommand:upgrade" help:"apt upgrade packages installed from mirrors.wit.com"`
+ Upgrade *UpgradeCmd `arg:"subcommand:upgrade" help:"apt upgrade packages installed from mirrors.wit.com"`
RepoMap string `arg:"--repomap" help:"location of the repomap"`
Release bool `arg:"--release" help:"use go-deb --release"`
DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
@@ -48,6 +48,11 @@ type DebianCmd struct {
SkipInstall bool `arg:"--skip-install" help:"rebuild everything"`
}
+type UpgradeCmd struct {
+ DryRun bool `arg:"--dry-run" help:"don't really do anything"`
+ Force bool `arg:"--force" help:"force un-install and re-install each package"`
+}
+
type DefaultCmd struct {
DryRun bool `arg:"--dry-run" help:"only show what would be packaged"`
Verbose bool `arg:"--verbose" help:"be loud about it"`