aboutsummaryrefslogtreecommitdiff
path: root/internal/cli/dryrun.go
diff options
context:
space:
mode:
authortsne <tsne.dev@outlook.com>2026-07-06 16:52:20 +0200
committertsne <tsne.dev@outlook.com>2026-07-06 21:37:42 +0200
commit84da43998f7cc42cc72652333ac6e3d293abb23e (patch)
tree6610f82df854ae86f7f34152bb05fc712ef6f314 /internal/cli/dryrun.go
downloadhopper-84da43998f7cc42cc72652333ac6e3d293abb23e.tar.gz
initialHEADmain
Diffstat (limited to 'internal/cli/dryrun.go')
-rw-r--r--internal/cli/dryrun.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/cli/dryrun.go b/internal/cli/dryrun.go
new file mode 100644
index 0000000..ed65f48
--- /dev/null
+++ b/internal/cli/dryrun.go
@@ -0,0 +1,11 @@
+package cli
+
+import (
+ "github.com/spf13/pflag"
+)
+
+var dryRun = false
+
+func registerDryRunFlag(flags *pflag.FlagSet) {
+ flags.BoolVar(&dryRun, "dryrun", false, "run the command without executing any mutating operations")
+}