migrate invoke to config service
This commit is contained in:
1 parent
b0c9d73755
commit
19c02ef270
12 files changed
+187
-101
No files matched your search
+3
-4
@@ -1,9 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/codegangsta/cli"
|
||||
"github.com/pkg/errors"
|
||||
"html/template"
|
||||
"isp-ctl/bash"
|
||||
"isp-ctl/flag"
|
||||
@@ -45,8 +44,8 @@ func (s schemaCommand) action(ctx *cli.Context) {
|
||||
case flag.OutPrintHtmlValue:
|
||||
s.printHtml(schema)
|
||||
default:
|
||||
printError(errors.New(fmt.Sprintf(
|
||||
"invalid flag value, expected %s or %s", flag.OutPrintJsonValue, flag.OutPrintHtmlValue)))
|
||||
printError(errors.Errorf(
|
||||
"invalid flag value, expected %s or %s", flag.OutPrintJsonValue, flag.OutPrintHtmlValue))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user