Marcus Kok
ce0d506e21
implement Phase 1 + 2: idempotent link, apply command, and install script ( #43 )
...
- 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
dependabot[bot]
084be9f565
Bump golang.org/x/crypto from 0.21.0 to 0.31.0 ( #42 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.21.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.21.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Marcus
5df764bb98
clean up repo
...
remove some old things like Dockerfile and sandbox/clean scripts, not being used for development
1 year ago
Marcus
5105cdf5cb
update add command to link files automatically and deal with relative paths
1 year ago
Marcus Kok
a135494bbc
apply go formatting ( #41 )
2 years ago
Marcus Kok
8ebfc35ccc
update status ( #40 )
...
* update status
* temporarily pass test
2 years ago
Marcus Kok
8529c6cdac
Fix init ( #39 )
...
* add dockerfile for development
* fix init command
* update test
2 years ago
Marcus Kok
6aadf9c901
add dockerfile for development ( #38 )
2 years ago
Marcus Kok
398181ba28
update readme ( #37 )
2 years ago
Marcus Kok
35360d433e
add versioning to command ( #36 )
2 years ago
Marcus Kok
20bf76b364
update readme ( #35 )
2 years ago
Marcus Kok
a2f30b7b76
add confirmation on sync before pushing changes ( #32 )
2 years ago
dependabot[bot]
543c0a690f
Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 ( #34 )
...
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl ) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases )
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7 )
---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
3f6576db6d
Bump golang.org/x/net from 0.19.0 to 0.23.0 ( #33 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Marcus Kok
1ac0ee3ac9
remove leading '.' in file if adding to the config ( #31 )
2 years ago
Marcus Kok
3ab7c27a6c
specify yml in filetype for config ( #30 )
2 years ago
Marcus Kok
289dba2eb9
add rm command ( #29 )
2 years ago
Marcus Kok
d03fb61247
recreate dotctl config when pulling from git ( #28 )
2 years ago
Marcus Kok
86d93daa0c
only push on changes ( #27 )
...
Only push if there are no changes for sync command
2 years ago
Marcus Kok
7d4634ff92
support adding single files to config ( #26 )
2 years ago
Marcus Kok
3a6284e45e
add status command ( #25 )
...
* add status command
* new memmapfs on tests
* fixing all tests
2 years ago
Marcus Kok
3f88e64d1a
remove pretty command ( #24 )
...
* remove pretty command
2 years ago
Marcus Kok
e5f82cb724
only copy on confirm ( #23 )
2 years ago
Marcus Kok
35aeeb0f7d
adding gitleaks pre commit hook ( #22 )
2 years ago
Marcus Kok
0fa327abd6
add goreleaser config, update README ( #21 )
2 years ago
Marcus Kok
d5b8970279
add stuff ( #20 )
...
* add ability to view list of linked configs
* hide password in input for sync command
* confirm overwrite existing configs when adding
2 years ago
Marcus Kok
0b042d8637
make links a map in config ( #19 )
...
* make links a map in config
2 years ago
Marcus Kok
f41e35d956
ignore dotctl config in git ( #18 )
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
d9a2b13470
add dry run option for link ( #10 )
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
Marcus Kok
b25b3752a4
add git backup and init of repo ( #7 )
2 years ago
Marcus Kok
a78df291de
ignore git files ( #6 )
2 years ago
Marcus Kok
887ed15f35
Ignore git files when copying ( #5 )
2 years ago
Marcus Kok
0a06a6ad0c
Add copy ( #3 )
...
Adds helper functions to copy a file and recursively copy a directory
2 years ago
Marcus Kok
e2b88f11d9
Merge pull request #4 from Marcusk19/add_status_check
...
add ci workflow
2 years ago
Marcus Kok
8a7a82df8e
add ci workflow
2 years ago
Marcus Kok
76c8b26a78
Merge pull request #2 from Marcusk19/add_init
...
Add init
2 years ago
Marcusk19
985fdeb14d
adding default for init command
2 years ago
Marcusk19
8dbe90ce31
add file walk through path
2 years ago
Marcus Kok
5a6412584d
Merge pull request #1 from Marcusk19/add_init
...
add init command
2 years ago
Marcusk19
9643d3caa4
add init command
2 years ago
Marcusk19
cc3e861065
change readme
2 years ago
Marcusk19
e04c291eba
chanage go version in ci
2 years ago
Marcusk19
59948fec7a
add license and readme
2 years ago