MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / String

Method String

core/utils/cmd/cmdx.go:68–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (b *lockedBuffer) String() string {
69 b.mu.Lock()
70 defer b.mu.Unlock()
71 if b.truncated == 0 {
72 return b.buf.String()
73 }
74 return fmt.Sprintf("%s\n... truncated %d bytes ...", b.buf.String(), b.truncated)
75}
76
77func NewCommandMgr(opts ...Option) *CommandHelper {
78 s := &CommandHelper{}

Callers 15

RunPipeMethod · 0.95
RunPipeToFileMethod · 0.95
SwaggerHandlerFunction · 0.45
FormatMethod · 0.45
checkNamePatternFunction · 0.45
checkIpPatternFunction · 0.45
checkPasswordPatternFunction · 0.45
checkBaseSettingKeyFunction · 0.45
ToIndexHtmlFunction · 0.45
HandleNotSecurityFunction · 0.45
NewLocalClientFunction · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected