@@ -26,15 +26,15 @@ func TestCommand_ParseAndRun(t *testing.T) {
26
26
var rootConfig rootCmdConfig
27
27
var countConfig subCmdConfig
28
28
29
- countCmd := NewCommand ("count" , & countConfig , func (cmd * Command , cfg interface {}) error {
29
+ countCmd := NewCommand ("count" , "Count numbers" , & countConfig , func (cmd * Command , cfg interface {}) error {
30
30
cfgValues := cfg .(* subCmdConfig )
31
31
t .Log ("count command" , cfgValues .Number )
32
32
return nil
33
33
})
34
34
35
- mathCmd := NewCommand ("math" , nil , nil , countCmd )
35
+ mathCmd := NewCommand ("math" , "Mathematical functions" , nil , nil , countCmd )
36
36
37
- cmd := NewCommand ("" , & rootConfig , func (cmd * Command , cfg interface {}) error {
37
+ cmd := NewCommand ("" , "Test CLI" , & rootConfig , func (cmd * Command , cfg interface {}) error {
38
38
cfgValues := cfg .(* rootCmdConfig )
39
39
t .Log ("root command" , cfgValues .Hostname )
40
40
return nil
@@ -47,7 +47,7 @@ func TestCommand_ParseAndRun(t *testing.T) {
47
47
}
48
48
49
49
func TestCommand_Dependencies (t * testing.T ) {
50
- c := NewCommand ("testCmd" , nil , nil )
50
+ c := NewCommand ("testCmd" , "Test CLI" , nil , nil )
51
51
52
52
test := & testStruct {testValue : "test" }
53
53
0 commit comments