small fixes before merge
Some checks failed
code scans / scans (pull_request) Failing after 14s

This commit is contained in:
jake 2025-06-19 17:34:53 -04:00
parent 71ace969d3
commit f421bd906a
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ var runCmd = &cobra.Command{
count := strings.Count(crun, "%s") count := strings.Count(crun, "%s")
l := len(args) l := len(args)
if l-1 != count { if l-1 != count {
return fmt.Errorf("not enough arguments to fill all command placeholders, required: %d - have: %d", count, l) return fmt.Errorf("not enough arguments to fill all command placeholders, required: %d - have: %d", count, l-1)
} }
cli, err := client.New(cfgserver) cli, err := client.New(cfgserver)

View File

@ -12,7 +12,7 @@ import (
) )
var activeCmd = &cobra.Command{ var activeCmd = &cobra.Command{
Use: "active", Use: "activate",
Example: "mctl server active <server>", Example: "mctl server active <server>",
Short: "sets the active server to run commands on", Short: "sets the active server to run commands on",
SilenceUsage: true, SilenceUsage: true,