signcmd

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingPushKeyID = fmt.Errorf("push key ID is required")
View Source
var SignCmd = &cobra.Command{
	Use:   "sign [command]",
	Short: "Sign a commit, tag or note",
	Long:  `Sign a commit, tag or note. Run 'kit sign' to sign the current commit.`,
	Run: func(cmd *cobra.Command, args []string) {
		signCommitCmd.Run(cmd, args)
	},
}

SignCmd represents the commit command

Functions

func SignCommitCmd

func SignCommitCmd(cfg *config.AppConfig, repo types.LocalRepo, args *types3.SignCommitArgs) error

SignCommitCmd creates and signs a push token for a commit.

  • cfg: App config object
  • repo: The target repository at the working directory
  • args: Arguments

func SignNoteCmd

func SignNoteCmd(cfg *config.AppConfig, repo types.LocalRepo, args *types3.SignNoteArgs) error

SignNoteCmd create and signs a push token for a given note

func SignTagCmd

func SignTagCmd(cfg *config.AppConfig, cmdArg []string, repo types.LocalRepo, args *types3.SignTagArgs) error

SignTagCmd create and sign a push token for a given tag.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL