added some extra commands
All checks were successful
Go / build-test-publish (1.23.4) (push) Successful in 43s

This commit is contained in:
Denys Seredenko
2025-01-14 16:27:50 +01:00
parent c2d06f2b7f
commit ca2d6bbc67
4 changed files with 125 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ import (
"encoding/json"
"errors"
"fmt"
"git.denysoft.de/CubeBit/ssh-hub/cmd/add"
cobraDelete "git.denysoft.de/CubeBit/ssh-hub/cmd/delete"
"git.denysoft.de/CubeBit/ssh-hub/cmd/exec"
"git.denysoft.de/CubeBit/ssh-hub/cmd/list"
"github.com/spf13/cobra"
@@ -33,6 +35,8 @@ func init() {
cobra.OnInitialize(initCfg)
rootCmd.AddCommand(list.Cmd())
rootCmd.AddCommand(exec.Cmd())
rootCmd.AddCommand(add.Cmd())
rootCmd.AddCommand(cobraDelete.Cmd())
}
func initCfg() {