Commit fec63a9 1 parent d6fbfcf commit fec63a9 Copy full SHA for fec63a9
File tree 5 files changed +26
-12
lines changed
5 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ import (
27
27
28
28
const (
29
29
chainFuncName = "chaincode"
30
+ shortDes = "Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade."
31
+ longDes = "Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade."
30
32
)
31
33
32
34
var logger = flogging .MustGetLogger ("chaincodeCmd" )
99
101
100
102
var chaincodeCmd = & cobra.Command {
101
103
Use : chainFuncName ,
102
- Short : fmt .Sprintf ( "%s specific commands." , chainFuncName ),
103
- Long : fmt .Sprintf ( "%s specific commands." , chainFuncName ),
104
+ Short : fmt .Sprint ( shortDes ),
105
+ Long : fmt .Sprint ( longDes ),
104
106
}
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ import (
30
30
"google.golang.org/grpc/credentials"
31
31
)
32
32
33
- const channelFuncName = "channel"
33
+ const (
34
+ channelFuncName = "channel"
35
+ shortDes = "Operate a channel: create|fetch|join|list."
36
+ longDes = "Operate a channel: create|fetch|join|list."
37
+ )
34
38
35
39
var (
36
40
// join related variables.
@@ -70,8 +74,8 @@ func AddFlags(cmd *cobra.Command) {
70
74
71
75
var channelCmd = & cobra.Command {
72
76
Use : channelFuncName ,
73
- Short : fmt .Sprintf ( "%s specific commands." , channelFuncName ),
74
- Long : fmt .Sprintf ( "%s specific commands." , channelFuncName ),
77
+ Short : fmt .Sprint ( shortDes ),
78
+ Long : fmt .Sprint ( longDes ),
75
79
}
76
80
77
81
type BroadcastClientFactory func () (common.BroadcastClient , error )
Original file line number Diff line number Diff line change @@ -24,7 +24,11 @@ import (
24
24
"github.com/spf13/cobra"
25
25
)
26
26
27
- const loggingFuncName = "logging"
27
+ const (
28
+ loggingFuncName = "logging"
29
+ shortDes = "Log levels: getlevel|setlevel|revertlevels."
30
+ longDes = "Log levels: getlevel|setlevel|revertlevels."
31
+ )
28
32
29
33
var logger = flogging .MustGetLogger ("cli/logging" )
30
34
@@ -39,6 +43,6 @@ func Cmd() *cobra.Command {
39
43
40
44
var loggingCmd = & cobra.Command {
41
45
Use : loggingFuncName ,
42
- Short : fmt .Sprintf ( "%s specific commands." , loggingFuncName ),
43
- Long : fmt .Sprintf ( "%s specific commands." , loggingFuncName ),
46
+ Short : fmt .Sprint ( shortDes ),
47
+ Long : fmt .Sprint ( longDes ),
44
48
}
Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ import (
23
23
"github.com/spf13/cobra"
24
24
)
25
25
26
- const nodeFuncName = "node"
26
+ const (
27
+ nodeFuncName = "node"
28
+ shortDes = "Operate a peer node: start|stop|status."
29
+ longDes = "Operate a peer node: start|stop|status."
30
+ )
27
31
28
32
var (
29
33
stopPidFile string
@@ -41,6 +45,6 @@ func Cmd() *cobra.Command {
41
45
42
46
var nodeCmd = & cobra.Command {
43
47
Use : nodeFuncName ,
44
- Short : fmt .Sprintf ( "%s specific commands." , nodeFuncName ),
45
- Long : fmt .Sprintf ( "%s specific commands." , nodeFuncName ),
48
+ Short : fmt .Sprint ( shortDes ),
49
+ Long : fmt .Sprint ( longDes ),
46
50
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func Cmd() *cobra.Command {
31
31
var cobraCommand = & cobra.Command {
32
32
Use : "version" ,
33
33
Short : "Print fabric peer version." ,
34
- Long : `Print current version of fabric peer server.` ,
34
+ Long : `Print current version of the the fabric peer server.` ,
35
35
Run : func (cmd * cobra.Command , args []string ) {
36
36
Print ()
37
37
},
You can’t perform that action at this time.
0 commit comments