summaryrefslogtreecommitdiff
path: root/internal/cli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-26 00:30:13 +0300
committerPaul Buetow <paul@buetow.org>2025-06-26 00:30:13 +0300
commit15d06422f80ad7b9b10e5dc28104d3ba3abb2085 (patch)
tree4b2fb3902a19de43a5e41cb959729863a4ccca2d /internal/cli
parent7c30b68f29049704c7fafed8015169e9c8047e46 (diff)
add clean
Diffstat (limited to 'internal/cli')
-rw-r--r--internal/cli/flags.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/cli/flags.go b/internal/cli/flags.go
index 9b8afdc..aac339e 100644
--- a/internal/cli/flags.go
+++ b/internal/cli/flags.go
@@ -22,6 +22,7 @@ type Flags struct {
DryRun bool
WorkDir string
TestGitHubToken bool
+ Clean bool
}
// ParseFlags parses command-line flags and returns the flags struct
@@ -44,6 +45,7 @@ func ParseFlags() *Flags {
flag.BoolVar(&f.DryRun, "dry-run", false, "show what would be synced without actually syncing")
flag.StringVar(&f.WorkDir, "work-dir", "", "working directory for cloning repositories (default: ~/git/gitsyncer-workdir)")
flag.BoolVar(&f.TestGitHubToken, "test-github-token", false, "test GitHub token authentication")
+ flag.BoolVar(&f.Clean, "clean", false, "delete all repositories in work directory (with confirmation)")
flag.Parse()