MSP-5014 Refactor service and repository
This commit is contained in:
1 parent
599fa22429
commit
5dbd07dc03
12 files changed
+219
-212
No files matched your search
@@ -5,9 +5,10 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
"ispctl/command"
|
||||
"ispctl/command/flag"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var version = "1.1.0"
|
||||
@@ -26,16 +27,7 @@ func initCommands() {
|
||||
flag.Unsafe,
|
||||
}
|
||||
app.EnableBashCompletion = true
|
||||
app.Commands = []*cli.Command{
|
||||
command.Status(),
|
||||
command.Get(),
|
||||
command.Set(),
|
||||
command.Delete(),
|
||||
command.Schema(),
|
||||
command.Merge(),
|
||||
command.GitGet(),
|
||||
command.VariablesCommands(),
|
||||
}
|
||||
app.Commands = command.AllCommands()
|
||||
app.BashComplete = func(context *cli.Context) {
|
||||
for _, appCommand := range app.Commands {
|
||||
fmt.Println(appCommand.Name)
|
||||
|
||||
Reference in new issue
Block a user