MCPcopy
hub / github.com/cli/cli / translate

Function translate

internal/docs/man_test.go:15–17  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

13)
14
15func translate(in string) string {
16 return strings.Replace(in, "-", "\\-", -1)
17}
18
19func TestGenManDoc(t *testing.T) {
20 header := &GenManHeader{

Callers 4

TestGenManDocFunction · 0.85
TestGenManAliasesFunction · 0.85
TestGenManJSONFieldsFunction · 0.85

Calls 1

ReplaceMethod · 0.80

Tested by

no test coverage detected