Skip to content

Commit

Permalink
Merge pull request #41 from wickyyang/develop
Browse files Browse the repository at this point in the history
fix rtool's version
  • Loading branch information
needkane authored Oct 15, 2019
2 parents f1af6af + a5bbde4 commit a32f5a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,11 @@ run()
genesis )
build $prev"/cmd/genesis" "genesis"
;;
api )
build $prev"/cmd/api" "genesis-api"
;;
gtool )
build $prev"/cmd/client" "gtool"
;;
* )
build $prev"/cmd/genesis" "genesis"
build $prev"/cmd/api" "genesis-api"
build $prev"/cmd/client" "gtool"
;;
esac
Expand Down
5 changes: 3 additions & 2 deletions cmd/client/commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ import (
"fmt"

"gopkg.in/urfave/cli.v1"

"github.com/dappledger/AnnChain/chain/types"
)

var (
VERSION string
VersionCommands = cli.Command{
Name: "version",
Action: ShowVersion,
Expand All @@ -36,5 +37,5 @@ var (
)

func ShowVersion(ctx *cli.Context) {
fmt.Println("version:", VERSION)
fmt.Println("version:", types.GetVersion())
}
3 changes: 2 additions & 1 deletion cmd/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

"gopkg.in/urfave/cli.v1"

"github.com/dappledger/AnnChain/chain/types"
"github.com/dappledger/AnnChain/cmd/client/commands"
"github.com/dappledger/AnnChain/cmd/client/commons"
)
Expand All @@ -27,7 +28,7 @@ func main() {

app := cli.NewApp()
app.Name = "anntool"
app.Version = "0.6"
app.Version = types.GetVersion()

app.Commands = []cli.Command{
commands.SignCommand,
Expand Down

0 comments on commit a32f5a1

Please sign in to comment.