aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-16 18:32:22 +0200
committerDanilo M. <danix@danix.xyz>2026-06-16 18:32:22 +0200
commitc58978b328b1f9086b3bb09bbe4c19312c8bc0f8 (patch)
tree17b2222088628b208717a24989767a4f311b645d
parentd9a245ec8c2236e897771459467a8c7c753ce341 (diff)
downloaddots-backup-c58978b328b1f9086b3bb09bbe4c19312c8bc0f8.tar.gz
dots-backup-c58978b328b1f9086b3bb09bbe4c19312c8bc0f8.zip
feat: add --suggest flag plumbing
Adds the SUGGEST flag variable, CLI argument parsing, and help text for the upcoming --suggest feature. The flag is wired but behavior will be implemented in subsequent tasks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
-rwxr-xr-xdot-backup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dot-backup.sh b/dot-backup.sh
index 701153f..128a733 100755
--- a/dot-backup.sh
+++ b/dot-backup.sh
@@ -52,6 +52,7 @@ VERBOSE=false
RESTORE=false
QUIET=false
PUSH=false
+SUGGEST=false
usage() {
echo "Usage: $0 [options]"
@@ -60,6 +61,7 @@ usage() {
echo " -r, --restore Restore dotfiles from backup to their original locations"
echo " -q, --quiet Suppress stdout; write output to log instead"
echo " -p, --push Push to remote after commit (requires GIT_REMOTE in config)"
+ echo " -s, --suggest List untracked config dirs/files new since last backup, then exit"
echo " -h, --help Show this help"
exit 0
}
@@ -71,6 +73,7 @@ for arg in "$@"; do
-r|--restore) RESTORE=true ;;
-q|--quiet) QUIET=true ;;
-p|--push) PUSH=true ;;
+ -s|--suggest) SUGGEST=true ;;
-h|--help) usage ;;
*) echo -e "${RED}Unknown option: $arg${NC}"; usage ;;
esac