MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / firstLine

Function firstLine

internal/ui/plugins/ansible/plugin.go:2033–2039  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

2031}
2032
2033func firstLine(s string) string {
2034 lines := strings.Split(strings.TrimSpace(s), "\n")
2035 if len(lines) == 0 {
2036 return ""
2037 }
2038 return lines[0]
2039}
2040
2041func extractDryRunPlan(output string) string {
2042 lines := strings.Split(strings.TrimSpace(output), "\n")

Calls

no outgoing calls

Tested by

no test coverage detected