MCPcopy
hub / github.com/kubernetes/kubectl / LongDesc

Function LongDesc

pkg/util/templates/normalizers.go:30–35  ·  view source on GitHub ↗

LongDesc normalizes a command's long description to follow the conventions.

(s string)

Source from the content-addressed store, hash-verified

28
29// LongDesc normalizes a command's long description to follow the conventions.
30func LongDesc(s string) string {
31 if len(s) == 0 {
32 return s
33 }
34 return normalizer{s}.heredoc().markdown().trim().string
35}
36
37// Examples normalizes a command's examples to follow the conventions.
38func Examples(s string) string {

Callers 15

NewKubectlCommandFunction · 0.92
NewCmdAlphaFunction · 0.92
logs.goFile · 0.92
completion.goFile · 0.92
scale.goFile · 0.92
plugin.goFile · 0.92
NewCmdKustomizeFunction · 0.92
get.goFile · 0.92
whoami.goFile · 0.92
reconcile.goFile · 0.92
cani.goFile · 0.92
taint.goFile · 0.92

Calls 3

trimMethod · 0.80
markdownMethod · 0.80
heredocMethod · 0.80

Tested by 2

TestLongDescMarkdownFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…