mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
27 lines
717 B
Go
27 lines
717 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var trust_signer_addCmd = &cobra.Command{
|
|
Use: "add OPTIONS NAME REPOSITORY [REPOSITORY...] ",
|
|
Short: "Add a signer",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(trust_signer_addCmd).Standalone()
|
|
|
|
trust_signer_addCmd.Flags().String("key", "", "Path to the signer's public key file")
|
|
trust_signerCmd.AddCommand(trust_signer_addCmd)
|
|
|
|
carapace.Gen(trust_signer_addCmd).FlagCompletion(carapace.ActionMap{
|
|
"key": carapace.ActionFiles(),
|
|
})
|
|
|
|
carapace.Gen(trust_signer_addCmd).PositionalAnyCompletion(docker.ActionRepositories())
|
|
}
|