Commit Graph

13 Commits (a18246363e925ca94c433dfd975a91c0d9a6b7ea)

Author SHA1 Message Date
Marcus 81f719ac2a implement Phase 1 + 2: idempotent link, apply command, and install script
- Rewrite cmd/link.go with safe idempotent logic: skips correct symlinks,
  backs up real files to .dotctl.bak, respects --overwrite and --no-backup
- Add cmd/apply.go: new bootstrap command that clones or pulls a dotfiles
  repo then runs the idempotent link logic with a summary
- Add --overwrite and --no-backup persistent flags to root command
- Remove unstable cmd/sync.go
- Fix cmd/init.go gitignore to not exclude dotctl/config.yml (required
  for apply to work on fresh machines)
- Add install.sh: detects OS/arch, downloads binary from GitHub releases,
  optionally runs dotctl apply <url>
- Update README with Quick Start section covering both bootstrap methods
- Rewrite test/link_test.go with 10 real-filesystem idempotency tests
- Add test/apply_test.go with 5 tests covering dry-run, linking, and
  idempotency
- Fix pre-existing TestInitCommand failure (missing MemMapFs setup)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 weeks ago
Marcus Kok a135494bbc
apply go formatting (#41) 2 years ago
Marcus Kok 3ab7c27a6c
specify yml in filetype for config (#30) 2 years ago
Marcus Kok 0b042d8637
make links a map in config (#19)
* make links a map in config
2 years ago
Marcus Kok 16051e8645
renaming to dotctl (#16) 2 years ago
Marcus Kok 2356fab9d4
Add sync (#14)
* adding sync command
* changing version in go.mod
2 years ago
Marcus Kok 9ef61b2626
Work (#13)
* use config for dotfile path, add some makefile scripts

* update README

* add unit test for link command

* fixing ci
2 years ago
Marcus Kok 2060833611
add add command (#12) 2 years ago
Marcus Kok f2ca64670a
update init command, don't automatically search, just create config file for cli (#11) 2 years ago
Marcus Kok 959e2ff2c9
add testing (#9)
* add unit test for init command
2 years ago
Marcus Kok 9a28f04258
add symlink command (#8) 2 years ago
Marcusk19 2c0d17ad3a add unit test 2 years ago
Marcusk19 199c3ac632 first commit 2 years ago