summaryrefslogtreecommitdiff
path: root/cmd/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cli')
-rw-r--r--cmd/cli/reset.go4
-rw-r--r--cmd/cli/serve.go4
-rw-r--r--cmd/cli/workers.go4
3 files changed, 6 insertions, 6 deletions
diff --git a/cmd/cli/reset.go b/cmd/cli/reset.go
index 504d88ad..a5055a53 100644
--- a/cmd/cli/reset.go
+++ b/cmd/cli/reset.go
@@ -26,8 +26,8 @@ func init() {
})
}
-func resetHandler(cmd *cobra.Command, args []string) error {
- const op = errors.Op("reset handler")
+func resetHandler(_ *cobra.Command, args []string) error {
+ const op = errors.Op("reset_handler")
client, err := RPCClient()
if err != nil {
return err
diff --git a/cmd/cli/serve.go b/cmd/cli/serve.go
index 2fe54932..993ec477 100644
--- a/cmd/cli/serve.go
+++ b/cmd/cli/serve.go
@@ -19,8 +19,8 @@ func init() {
})
}
-func handler(cmd *cobra.Command, args []string) error {
- const op = errors.Op("handle serve command")
+func handler(_ *cobra.Command, _ []string) error {
+ const op = errors.Op("handle_serve_command")
/*
We need to have path to the config at the RegisterTarget stage
But after cobra.Execute, because cobra fills up cli variables on this stage
diff --git a/cmd/cli/workers.go b/cmd/cli/workers.go
index 47dd2a85..09642a58 100644
--- a/cmd/cli/workers.go
+++ b/cmd/cli/workers.go
@@ -42,7 +42,7 @@ func init() {
}
func workersHandler(_ *cobra.Command, args []string) error {
- const op = errors.Op("workers cobra handler")
+ const op = errors.Op("handle_workers_command")
// get RPC client
client, err := RPCClient()
if err != nil {
@@ -94,7 +94,7 @@ func workersHandler(_ *cobra.Command, args []string) error {
}
func showWorkers(plugins []string, client *rpc.Client) error {
- const op = errors.Op("show workers")
+ const op = errors.Op("show_workers")
for _, plugin := range plugins {
list := &informer.WorkerList{}
err := client.Call(InformerWorkers, plugin, &list)