π― Goal
Extend eko init with a --from <snapshot-id> flag that initializes a fresh .eko/ directory and immediately restores the specified snapshot into the current empty directory β useful for onboarding onto a shared project checkpoint.
π‘ Expected Usage
mkdir new-project && cd new-project
eko init --from 8c9d1a2f
# Eko initialized.
# Restored snapshot 8c9d1a2f into current directory.
π οΈ Implementation Steps
- Add
--from string flag to cmd/init.go.
- After standard
eko init logic runs, if --from is set, call internal/snapshot.RestoreSnapshot() with the resolved snapshot path.
- Print a combined success message.
- Add unit tests in
cmd/commands_test.go.
π See full details in GOOD_FIRST_ISSUES.md β Issue #17
π Great for first-time contributors! Read CONTRIBUTING.md to get started.
π― Goal
Extend
eko initwith a--from <snapshot-id>flag that initializes a fresh.eko/directory and immediately restores the specified snapshot into the current empty directory β useful for onboarding onto a shared project checkpoint.π‘ Expected Usage
π οΈ Implementation Steps
--fromstring flag tocmd/init.go.eko initlogic runs, if--fromis set, callinternal/snapshot.RestoreSnapshot()with the resolved snapshot path.cmd/commands_test.go.