Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algolia/cli
/ Indent
Function
Indent
pkg/text/indent.go:10–15 ·
view source on GitHub ↗
(s, indent string)
Source
from the content-addressed store, hash-verified
8
var
lineRE = regexp.MustCompile(`(?m)^`)
9
10
func
Indent(s, indent string) string {
11
if
len(strings.TrimSpace(s)) == 0 {
12
return
s
13
}
14
return
lineRE.ReplaceAllLiteralString(s, indent)
15
}
Callers
6
AddInheritedFlags
Method · 0.92
DisplayEntries
Method · 0.92
runUpdateCmd
Function · 0.92
runOperationsCmd
Function · 0.92
runImportCmd
Function · 0.92
Test_Indent
Function · 0.85
Calls
no outgoing calls
Tested by
1
Test_Indent
Function · 0.68