Archived
1
This commit is contained in:
2024-12-23 01:44:58 +03:00
parent 0c5fa2abd7
commit 2c3f607a92
6 changed files with 38 additions and 25 deletions

24
cmd/ports.go Normal file
View File

@@ -0,0 +1,24 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func NewCommandPorts() *cobra.Command {
spaceCmd := &cobra.Command{
Use: "ports",
Short: "работа с пробросом SSH портов",
RunE: portsRunE,
}
return spaceCmd
}
func portsRunE(_ *cobra.Command, args []string) error {
fmt.Println("[dummy] ports")
for _, elm := range args {
fmt.Printf("- %s\n", elm)
}
return nil
}