From 0f7f080f1946e09126dd528c6ecc7b46f5726cf7 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 24 Jan 2014 10:55:36 -0500 Subject: [PATCH] Move help texts into their own const group. --- cmds.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cmds.go b/cmds.go index bf3eb63d..b70c697d 100644 --- a/cmds.go +++ b/cmds.go @@ -12,12 +12,17 @@ import ( "github.com/conformal/btcwire" ) -func init() { - btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd, - `authenticate "username" "passphrase" +// Help texts +const ( + authenticateHelp = `authenticate "username" "passphrase" Authenticate the websocket with the RPC server. This is only required if the credentials were not already supplied via HTTP auth headers. It must be the -first command sent or you will be disconnected.`) +first command sent or you will be disconnected.` +) + +func init() { + btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd, + authenticateHelp) btcjson.RegisterCustomCmd("createencryptedwallet", parseCreateEncryptedWalletCmd, `TODO(jrick) fillmein`) btcjson.RegisterCustomCmd("exportwatchingwallet",