WIP
This commit is contained in:
24
cmd/openports.go
Normal file
24
cmd/openports.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user