feat: add cli - start server, list packages, purge packages

This commit is contained in:
 Ilya Atamas
2019-04-18 01:14:20 +03:00
parent e8dfb5a945
commit 61dca22a01
11 changed files with 300 additions and 102 deletions

17
cli/main.go Normal file
View 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)
}
}