mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
31 lines
795 B
Go
31 lines
795 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var checkpoint_rmCmd = &cobra.Command{
|
|
Use: "rm [OPTIONS] CONTAINER CHECKPOINT",
|
|
Short: "Remove a checkpoint",
|
|
Aliases: []string{"remove"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(checkpoint_rmCmd).Standalone()
|
|
|
|
checkpoint_rmCmd.Flags().String("checkpoint-dir", "", "Use a custom checkpoint storage directory")
|
|
checkpointCmd.AddCommand(checkpoint_rmCmd)
|
|
|
|
carapace.Gen(checkpoint_rmCmd).FlagCompletion(carapace.ActionMap{
|
|
"checkpoint-dir": carapace.ActionDirectories(),
|
|
})
|
|
|
|
carapace.Gen(checkpoint_rmCmd).PositionalCompletion(
|
|
docker.ActionContainers(),
|
|
// TODO checkpoint completion
|
|
)
|
|
}
|