- Set up cobra CLI with all commands (backup, restore, prune, verify, fetch) - Integrate uber/fx for dependency injection and lifecycle management - Add globals package with build-time variables (Version, Commit) - Implement config loading from YAML with validation - Create core data models (FileInfo, ChunkInfo, BlobInfo, Snapshot) - Add Makefile with build, test, lint, and clean targets - Include minimal test suite for compilation verification - Update documentation with --quick flag for verify command - Fix markdown numbering in implementation TODO
13 lines
198 B
Go
13 lines
198 B
Go
package cli
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// CLIEntry is the main entry point for the CLI application
|
|
func CLIEntry() {
|
|
rootCmd := NewRootCommand()
|
|
if err := rootCmd.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
} |