Archived
1
This commit is contained in:
2024-12-19 18:48:26 +03:00
commit 2186f92263
32 changed files with 1498 additions and 0 deletions

24
cmd/openports.go Normal file
View File

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