...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package token
18
19 import (
20 "github.com/sassoftware/relic/cmdline/shared"
21 "github.com/sassoftware/relic/signers/pgp"
22 "github.com/spf13/cobra"
23 )
24
25 var SignPgpCmd = &cobra.Command{
26 Use: "sign-pgp",
27 Short: "Create PGP signatures",
28 Long: "This command is vaguely compatible with the gpg command-line and accepts (and mostly, ignores) many of gpg's options. It can thus be used as a drop-in replacement for tools that use gpg to make signatures.",
29 RunE: signPgpCmd,
30 }
31
32 func init() {
33 pgp.AddCompatFlags(SignPgpCmd)
34 shared.RootCmd.AddCommand(SignPgpCmd)
35 }
36
37 func signPgpCmd(cmd *cobra.Command, args []string) (err error) {
38 return pgp.CallCmd(cmd, SignCmd, args)
39 }
40
View as plain text