mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
25 lines
683 B
Go
25 lines
683 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var image_rmCmd = &cobra.Command{
|
|
Use: "rm [OPTIONS] IMAGE [IMAGE...]",
|
|
Short: "Remove one or more images",
|
|
Aliases: []string{"rmi", "remove"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(image_rmCmd).Standalone()
|
|
|
|
image_rmCmd.Flags().BoolP("force", "f", false, "Force removal of the image")
|
|
image_rmCmd.Flags().Bool("no-prune", false, "Do not delete untagged parents")
|
|
imageCmd.AddCommand(image_rmCmd)
|
|
|
|
carapace.Gen(image_rmCmd).PositionalAnyCompletion(docker.ActionRepositoryTags())
|
|
}
|