mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
529 B
Go
24 lines
529 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var trust_key_loadCmd = &cobra.Command{
|
|
Use: "load [OPTIONS] KEYFILE",
|
|
Short: "Load a private key file for signing",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(trust_key_loadCmd).Standalone()
|
|
|
|
trust_key_loadCmd.Flags().String("name", "signer", "Name for the loaded key")
|
|
trust_keyCmd.AddCommand(trust_key_loadCmd)
|
|
|
|
carapace.Gen(trust_key_loadCmd).PositionalCompletion(
|
|
carapace.ActionFiles(),
|
|
)
|
|
}
|