mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
28 lines
876 B
Go
28 lines
876 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var plugin_upgradeCmd = &cobra.Command{
|
|
Use: "upgrade [OPTIONS] PLUGIN [REMOTE]",
|
|
Short: "Upgrade an existing plugin",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(plugin_upgradeCmd).Standalone()
|
|
|
|
plugin_upgradeCmd.Flags().Bool("disable-content-trust", true, "Skip image verification")
|
|
plugin_upgradeCmd.Flags().Bool("grant-all-permissions", false, "Grant all permissions necessary to run the plugin")
|
|
plugin_upgradeCmd.Flags().Bool("skip-remote-check", false, "Do not check if specified remote plugin matches existing plugin image")
|
|
pluginCmd.AddCommand(plugin_upgradeCmd)
|
|
|
|
carapace.Gen(plugin_upgradeCmd).PositionalCompletion(
|
|
docker.ActionPlugins(),
|
|
carapace.ActionValues(),
|
|
)
|
|
}
|