fix(restore): fixed restore command
This commit is contained in:
16
CHECKLIST.md
16
CHECKLIST.md
@@ -4,6 +4,7 @@
|
||||
- [x] Configure `build.gradle.kts` with dependencies
|
||||
- [x] Set up testing framework
|
||||
|
||||
|
||||
# Core
|
||||
|
||||
- [x] Create `Repository.kt` class
|
||||
@@ -14,6 +15,7 @@
|
||||
- [x] Implement `Timeline.kt` for version tracking
|
||||
- [x] Add `RepoMetadata` and configuration
|
||||
|
||||
|
||||
# File Operations
|
||||
|
||||
- [x] Implement markdown file scanning
|
||||
@@ -23,8 +25,10 @@
|
||||
- [x] Add file timestamp tracking
|
||||
- [ ] Create backup and restore mechanisms
|
||||
|
||||
|
||||
# Core Commands
|
||||
|
||||
|
||||
## Init Command
|
||||
|
||||
- [x] `notevc init` - Initialize repository
|
||||
@@ -32,6 +36,7 @@
|
||||
- [x] Generate initial metadata file
|
||||
- [x] Handle existing repository detection
|
||||
|
||||
|
||||
## Status Command
|
||||
|
||||
- [x] `notevc status` - Show file changes
|
||||
@@ -39,6 +44,7 @@
|
||||
- [x] Display added/modified/deleted files
|
||||
- [x] Show clean working directory message
|
||||
|
||||
|
||||
## Commit command
|
||||
|
||||
- [x] `notevc commit "message"` - Create snapshot
|
||||
@@ -47,6 +53,7 @@
|
||||
- [x] Create snapshot with metadata
|
||||
- [x] Update repository head pointer
|
||||
|
||||
|
||||
## Log Command
|
||||
|
||||
- [ ] `notevc log` - Show commit history
|
||||
@@ -54,8 +61,10 @@
|
||||
- [ ] Show commit hashes, messages, and timestamps
|
||||
- [ ] add `--since` time filtering option
|
||||
|
||||
|
||||
# Advanced Commands
|
||||
|
||||
|
||||
## Diff Command
|
||||
|
||||
- [ ] `notevc diff` - Show current changes
|
||||
@@ -63,6 +72,7 @@
|
||||
- [ ] `notevc diff <commit>` - Compare with specific commit
|
||||
- [ ] Implement basic text diffing algorithm
|
||||
|
||||
|
||||
## Restore Command
|
||||
|
||||
- [ ] `notevc restore <commit>` - Restore entire state
|
||||
@@ -70,12 +80,14 @@
|
||||
- [ ] Add conformation prompts for destructive operations
|
||||
- [ ] Handle file conflicts gracefully
|
||||
|
||||
|
||||
## Show Command
|
||||
|
||||
- [ ] `notevc show <commit>` - Display commit changes
|
||||
- [ ] Show commit metadata and file changes
|
||||
- [ ] Display file contents at specific commit
|
||||
|
||||
|
||||
# Utilities and Polish
|
||||
|
||||
- [ ] Add colored output for better UX
|
||||
@@ -85,6 +97,7 @@
|
||||
- [ ] Add version information (`notevc --version`)
|
||||
- [ ] Implement configuration file support
|
||||
|
||||
|
||||
# Testing
|
||||
|
||||
- [ ] Write unit tests for `ObjectStore`
|
||||
@@ -94,6 +107,7 @@
|
||||
- [ ] Add edge case testing (empty repos, corrupted data)
|
||||
- [ ] Performance testing with large note collections
|
||||
|
||||
|
||||
# Build and Distribution
|
||||
|
||||
- [ ] Create fat JAR for distribution
|
||||
@@ -102,6 +116,7 @@
|
||||
- [ ] Create installation scripts
|
||||
- [ ] Add build automation (GitHub Actions)
|
||||
|
||||
|
||||
# Future Features
|
||||
|
||||
- [ ] Compression for stored content
|
||||
@@ -112,3 +127,4 @@
|
||||
- [ ] Export/import functionality
|
||||
- [ ] NeoVim Plugin
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user