MCPcopy
hub / github.com/cloudflare/cloudflared / commandHelpTemplate

Function commandHelpTemplate

cmd/cloudflared/tunnel/subcommands.go:1054–1078  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1052}
1053
1054func commandHelpTemplate() string {
1055 var parentFlagsHelp string
1056 for _, f := range configureCloudflaredFlags(false) {
1057 parentFlagsHelp += fmt.Sprintf(" %s\n\t", f)
1058 }
1059 for _, f := range cliutil.ConfigureLoggingFlags(false) {
1060 parentFlagsHelp += fmt.Sprintf(" %s\n\t", f)
1061 }
1062 const template = `NAME:
1063 {{.HelpName}} - {{.Usage}}
1064
1065USAGE:
1066 {{.UsageText}}
1067
1068DESCRIPTION:
1069 {{.Description}}
1070
1071TUNNEL COMMAND OPTIONS:
1072 %s
1073SUBCOMMAND OPTIONS:
1074 {{range .VisibleFlags}}{{.}}
1075 {{end}}
1076`
1077 return fmt.Sprintf(template, parentFlagsHelp)
1078}
1079
1080func buildDiagCommand() *cli.Command {
1081 return &cli.Command{

Callers 10

buildCreateCommandFunction · 0.85
buildListCommandFunction · 0.85
buildReadyCommandFunction · 0.85
buildInfoCommandFunction · 0.85
buildDeleteCommandFunction · 0.85
buildRunCommandFunction · 0.85
buildCleanupCommandFunction · 0.85
buildTokenCommandFunction · 0.85
buildRouteCommandFunction · 0.85
buildDiagCommandFunction · 0.85

Calls 2

ConfigureLoggingFlagsFunction · 0.92

Tested by

no test coverage detected