diff --git a/diagnostics.go b/diagnostics.go index 28d0053..9cd1e43 100644 --- a/diagnostics.go +++ b/diagnostics.go @@ -153,7 +153,7 @@ var diagnosticsSync = func() *fctCmd { cmd.execFunc = func(args []string) { os.Args = args sdisp := flag.Bool("S", false, "display only the syncing status") - rdisp := flag.Bool("R", false, "display only the recieved status") + rdisp := flag.Bool("R", false, "display only the received status") edisp := flag.Bool("E", false, "display only the expected status") flag.Parse() args = flag.Args() @@ -173,7 +173,7 @@ var diagnosticsSync = func() *fctCmd { fmt.Println(d.SyncInfo.Expected) default: fmt.Println("Status:", d.SyncInfo.Status) - fmt.Println("Recieved:", d.SyncInfo.Received) + fmt.Println("Received:", d.SyncInfo.Received) fmt.Println("Expected:", d.SyncInfo.Expected) for _, m := range d.SyncInfo.Missing { fmt.Println("Missing:", m) diff --git a/get.go b/get.go index 06eebe9..a2573bf 100644 --- a/get.go +++ b/get.go @@ -231,7 +231,7 @@ var getChainHead = func() *fctCmd { var getABlock = func() *fctCmd { cmd := new(fctCmd) - cmd.helpMsg = "factom-cli get ABlock [-RDBPL] HEIGHT|KEYMR" + cmd.helpMsg = "factom-cli get ablock [-RDBPL] HEIGHT|KEYMR" cmd.description = "Get an Admin Block from factom by its Key Merkel Root " + "or by its Height" cmd.completion = complete.Command{ @@ -279,7 +279,7 @@ var getABlock = func() *fctCmd { case *ddisp: fmt.Println(ablock.DBHeight) case *bdisp: - fmt.Println(ablock.BackReverenceHash) + fmt.Println(ablock.BackReferenceHash) case *pdisp: fmt.Println(ablock.PrevBackreferenceHash) case *ldisp: @@ -503,7 +503,7 @@ var getECBlock = func() *fctCmd { pdisp := flag.Bool("P", false, "display only the Previous Header Hash") ldisp := flag.Bool("L", false, "display only the Previous Full Hash") ddisp := flag.Bool("D", false, "display only the Directory Block Height") - adisp := flag.Bool("A", false, "display only the Head Expantion Area") + adisp := flag.Bool("A", false, "display only the Head Expansion Area") hdisp := flag.Bool("H", false, "display only the Header Hash") fdisp := flag.Bool("F", false, "display only the Full Hash") flag.Parse() diff --git a/glide.lock b/glide.lock index 8c28a72..bab46cb 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: 6b2f51f56c3b62261c207d6d9d46aaf94ec3f367cfc6e9957efd0b1f534730bf -updated: 2019-06-11T10:51:40.443940701-05:00 +hash: 6440fbb001c9acaeba825a1e889f03eaa8f0f6f6b579432ec96eaaa1b553c81f +updated: 2019-06-12T10:14:34.741707088-05:00 imports: - name: github.com/btcsuitereleases/btcutil version: f2b1058a82554c0c7c3b8809c5956c38374604d8 @@ -20,7 +20,7 @@ imports: subpackages: - edwards25519 - name: github.com/FactomProject/factom - version: 201a384d8e70e8d81b53c730b5432787cf4aeb24 + version: c27795c3b9085472d123b2a2fe4a5e4cd4fb17e4 - name: github.com/FactomProject/factomd version: c429cbf87dd732ffaf95663fa2b5ab900e33e04d subpackages: @@ -56,7 +56,7 @@ imports: - name: github.com/konsorten/go-windows-terminal-sequences version: 5c8c8bd35d3832f5d134ae1e1e375b69a4d25242 - name: github.com/posener/complete - version: 60e9d0a237999e714fb4d04727fe7ffa1b377c6e + version: 3ef9b31a6a0613ae832e7ecf208374027c3b2343 subpackages: - cmd - cmd/install diff --git a/glide.yaml b/glide.yaml index a4088b1..5ad0884 100644 --- a/glide.yaml +++ b/glide.yaml @@ -5,8 +5,10 @@ import: - base58 - package: github.com/FactomProject/cli - package: github.com/FactomProject/factom - version: v1-rollup-testing + version: v1-rollup - package: github.com/FactomProject/factomd version: ^6.3.2 subpackages: - util +- package: github.com/posener/complete + version: ^1.2.1 diff --git a/main.go b/main.go index 9a804c9..7745763 100644 --- a/main.go +++ b/main.go @@ -107,7 +107,7 @@ func main() { "unlockwallet": unlockwallet.completion, "newtx": newtx.completion, - "rmtx": complete.Command{}, + "rmtx": rmtx.completion, "listtxs": listtxs.completion, "addtxinput": addtxinput.completion, "addtxoutput": addtxoutput.completion, @@ -142,7 +142,7 @@ func main() { // strings filename := util.ConfigFilename() - //instead of giving warnings, check that the file exists before attempting + // instead of giving warnings, check that the file exists before attempting // to read it. if _, err := os.Stat(filename); err == nil { cfg := util.ReadConfig(filename) @@ -173,7 +173,7 @@ func main() { } } - //if a config file is found, and the wallet will start with TLS, + // if a config file is found, and the wallet will start with TLS, // factom-cli should use TLS too if cfg.Walletd.WalletTlsEnabled == true { *walletTLSflag = true @@ -187,7 +187,7 @@ func main() { } } - //if a config file is found, and the factomd will start with TLS, + // if a config file is found, and the factomd will start with TLS, // factom-cli should use TLS too if cfg.App.FactomdTlsEnabled == true { *factomdTLSflag = true @@ -202,7 +202,7 @@ func main() { } } - //if all defaults were specified on both the command line and config file + // if all defaults were specified on both the command line and config file if *walletTLSCert == "" { *walletTLSCert = fmt.Sprint( util.GetHomeDir(), @@ -210,7 +210,7 @@ func main() { ) } - //if all defaults were specified on both the command line and config file + // if all defaults were specified on both the command line and config file if *factomdTLSCert == "" { *factomdTLSCert = fmt.Sprint( util.GetHomeDir(), @@ -218,7 +218,7 @@ func main() { ) } - //set the default if a config file doesn't exist + // set the default if a config file doesn't exist if *factomdLocation == "" { *factomdLocation = "localhost:8088" }