Move help texts into their own const group.
This commit is contained in:
parent
413e028702
commit
0f7f080f19
1 changed files with 9 additions and 4 deletions
13
cmds.go
13
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",
|
||||
|
|
Loading…
Add table
Reference in a new issue