feat: add cli - start server, list packages, purge packages
This commit is contained in:
17
cli/main.go
Normal file
17
cli/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
// Run starts the CLI
|
||||
func Run() {
|
||||
rootCmd.AddCommand(listCmd)
|
||||
rootCmd.AddCommand(purgeCmd)
|
||||
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user