Commit 88779b6

Karn Wong <karn@karnwong.me>
2023-12-29 16:44:35
move ssh to security
1 parent 91f6257
Changed files (3)
cmd/ssh/ssh_generate_ssh_key.go → cmd/security/security_generate_ssh_key.go
@@ -1,4 +1,4 @@
-package ssh
+package security
 
 import (
 	"crypto"
cmd/ssh/ssh.go
@@ -1,16 +0,0 @@
-package ssh
-
-import (
-	"fmt"
-
-	"github.com/spf13/cobra"
-)
-
-var Cmd = &cobra.Command{
-	Use:   "ssh",
-	Short: "SSH tools",
-	Long:  `SSH tools`,
-	Run: func(cmd *cobra.Command, args []string) {
-		fmt.Println("Please specify subcommand")
-	},
-}
cmd/root.go
@@ -5,7 +5,6 @@ import (
 
 	"github.com/kahnwong/swissknife/cmd/networking"
 	"github.com/kahnwong/swissknife/cmd/security"
-	"github.com/kahnwong/swissknife/cmd/ssh"
 	"github.com/spf13/cobra"
 )
 
@@ -27,5 +26,4 @@ func init() {
 	rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
 	rootCmd.AddCommand(networking.Cmd)
 	rootCmd.AddCommand(security.Cmd)
-	rootCmd.AddCommand(ssh.Cmd)
 }