From 45a297a8e526094e8fce6e2c5c0fd89b381d1765 Mon Sep 17 00:00:00 2001 From: ewy Date: Tue, 14 Apr 2026 16:37:17 +0200 Subject: i have to commit at some point! --- flags/flags.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 flags/flags.go (limited to 'flags/flags.go') diff --git a/flags/flags.go b/flags/flags.go new file mode 100644 index 0000000..2ce8045 --- /dev/null +++ b/flags/flags.go @@ -0,0 +1,12 @@ +package flags + +import "github.com/spf13/pflag" + +var ( + Here = pflag.BoolP("here", "h", false, "run target in current directory instead of source location") + At = pflag.StringP("at", "@", "", "override run location") + Single = pflag.BoolP("singgle", "s", false, "do not run any triggers") + All = pflag.BoolP("all", "a", false, "get sources from cache instead of crawling") + Dry = pflag.BoolP("dry", "d", false, "print cmdlines instead of running them") + Root = pflag.BoolP("root", "r", false, "run targets (including triggers) with sudo") +) -- cgit v1.3