Files
console/command/list/help.go
andrey 85edd5acec
All checks were successful
Go Action / goaction (pull_request) Successful in 37s
update help for list and help command
2026-01-06 16:45:56 +03:00

19 lines
499 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
}