MCPcopy
hub / github.com/kptdev/kpt / clean

Function clean

internal/util/search/search.go:260–262  ·  view source on GitHub ↗

clean trims the string and removes quotes around it

(input string)

Source from the content-addressed store, hash-verified

258
259// clean trims the string and removes quotes around it
260func clean(input string) string {
261 return strings.Trim(strings.TrimSpace(input), `"`)
262}

Callers 15

TestCmd_executeFunction · 0.85
TestCmdExecuteFunction · 0.85
TestCmd_executeFunction · 0.85
TestCmd_failUnCommittedFunction · 0.85
TestGitUtil_DefaultRefFunction · 0.85
TestCommand_RunFunction · 0.85
TestCommand_Run_subdirFunction · 0.85
TestCommand_Run_branchFunction · 0.85
TestCommand_Run_tagFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestCmd_executeFunction · 0.68
TestCmdExecuteFunction · 0.68
TestCmd_executeFunction · 0.68
TestCmd_failUnCommittedFunction · 0.68
TestGitUtil_DefaultRefFunction · 0.68
TestCommand_RunFunction · 0.68
TestCommand_Run_subdirFunction · 0.68
TestCommand_Run_branchFunction · 0.68
TestCommand_Run_tagFunction · 0.68