From 2262adf33ff4240449d908c08d8d3a02c7c38fd9 Mon Sep 17 00:00:00 2001 From: Wyatt Daviau Date: Fri, 26 Jan 2018 18:30:45 -0500 Subject: [PATCH] state version command added License: MIT Signed-off-by: Wyatt Daviau --- ipfs-cluster-service/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ipfs-cluster-service/main.go b/ipfs-cluster-service/main.go index 5fb52cf16..6b04f7011 100644 --- a/ipfs-cluster-service/main.go +++ b/ipfs-cluster-service/main.go @@ -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",