Skip to content

Commit

Permalink
Rename extract to export
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yan committed Jan 28, 2020
1 parent 9a1230b commit 8007737
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions go/oasis-node/cmd/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ var (
Short: "signer backend utilities",
}

extractCmd = &cobra.Command{
Use: "extract",
Short: "extract entity from signer",
Run: doEntityExtract,
exportCmd = &cobra.Command{
Use: "export",
Short: "export the public key from signer to an entity",
Run: doExport,
}

logger = logging.GetLogger("cmd/signer")
)

func doEntityExtract(cmd *cobra.Command, args []string) {
func doExport(cmd *cobra.Command, args []string) {
if err := cmdCommon.Init(); err != nil {
cmdCommon.EarlyLogAndExit(err)
}
Expand All @@ -53,8 +53,8 @@ func Register(parentCmd *cobra.Command) {
v(signerCmd)
}

extractCmd.Flags().AddFlagSet(cmdFlags.SignerFlags)
exportCmd.Flags().AddFlagSet(cmdFlags.SignerFlags)

signerCmd.AddCommand(extractCmd)
signerCmd.AddCommand(exportCmd)
parentCmd.AddCommand(signerCmd)
}

0 comments on commit 8007737

Please sign in to comment.