mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
25 lines
574 B
Go
25 lines
574 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var plugin_pushCmd = &cobra.Command{
|
|
Use: "push [OPTIONS] PLUGIN[:TAG]",
|
|
Short: "Push a plugin to a registry",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(plugin_pushCmd).Standalone()
|
|
|
|
plugin_pushCmd.Flags().Bool("disable-content-trust", true, "Skip image signing")
|
|
pluginCmd.AddCommand(plugin_pushCmd)
|
|
|
|
carapace.Gen(plugin_pushCmd).PositionalCompletion(
|
|
docker.ActionPlugins(),
|
|
)
|
|
}
|