Skip to content

Commit

Permalink
feat: support account export commands and support version cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
leowkong authored and flywukong committed Jul 12, 2023
1 parent 0e5f87c commit aabcbb9
Show file tree
Hide file tree
Showing 6 changed files with 517 additions and 461 deletions.
18 changes: 18 additions & 0 deletions cmd/client_gnfd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ import (

const iso8601DateFormatSecond = "2006-01-02T15:04:05Z"

func cmdShowVersion() *cli.Command {
return &cli.Command{
Name: "version",
Action: showVersion,
Usage: "print version info",
ArgsUsage: "",
Description: `
Examples:
$ gnfd-cmd version `,
}
}

func showVersion(ctx *cli.Context) error {
fmt.Println("Greenfield Cmd Version:", Version)
return nil
}

// NewClient returns a new greenfield client
func NewClient(ctx *cli.Context) (client.Client, error) {
privateKey, _, err := parseKeystore(ctx)
Expand Down
Loading

0 comments on commit aabcbb9

Please sign in to comment.