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 19:21:15 +0200
commit2c41acab4c97f584e8e199b31dc456194b8d7e6c (patch)
tree42381deb6c4f6da0f32945432207a31b4d86664e /internal/cli/dryrun.go
downloadhopper-2c41acab4c97f584e8e199b31dc456194b8d7e6c.tar.gz
initial
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")
+}