All checks were successful
Go Action / goaction (pull_request) Successful in 2m26s
21 lines
501 B
Go
21 lines
501 B
Go
package list
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"gitoa.ru/go-4devs/console/setting"
|
|
)
|
|
|
|
const tpl = `
|
|
The <info>%[2]s</info> command lists all commands:
|
|
<info>%[1]s %[2]s</info>
|
|
You can also display the commands for a specific namespace:
|
|
<info>%[1]s %[2]s test</info>
|
|
You can also output the information in other formats by using the <comment>--format</comment> option:
|
|
<info>%[1]s %[2]s --format=xml</info>
|
|
`
|
|
|
|
func Help(data setting.HData) (string, error) {
|
|
return fmt.Sprintf(tpl, data.Bin, data.Name), nil
|
|
}
|