mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
615 B
Go
24 lines
615 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var network_rmCmd = &cobra.Command{
|
|
Use: "rm NETWORK [NETWORK...]",
|
|
Short: "Remove one or more networks",
|
|
Aliases: []string{"remove"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(network_rmCmd).Standalone()
|
|
|
|
network_rmCmd.Flags().BoolP("force", "f", false, "Do not error if the network does not exist")
|
|
networkCmd.AddCommand(network_rmCmd)
|
|
|
|
carapace.Gen(network_rmCmd).PositionalAnyCompletion(docker.ActionNetworks())
|
|
}
|