Skip to content

Commit

Permalink
state version command added
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
  • Loading branch information
ZenGround0 committed Jan 29, 2018
1 parent 36ab79e commit 2262adf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ipfs-cluster-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ configuration.
Name: "state",
Usage: "Manage ipfs-cluster-state",
Subcommands: []cli.Command{
{
Name: "version",
Usage: "display the shared state format version",
Action: func(c *cli.Context) error {
fmt.Printf("%d\n", mapstate.Version)
return nil
},
},
{
Name: "upgrade",
Usage: "upgrade the IPFS Cluster state to the current version",
Expand Down

0 comments on commit 2262adf

Please sign in to comment.