MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / String

Method String

cli/pkg/ssh_config/config.go:775–785  ·  view source on GitHub ↗

String prints out a string representation of this Include directive. Note included Config files are not printed as part of this representation.

()

Source from the content-addressed store, hash-verified

773// String prints out a string representation of this Include directive. Note
774// included Config files are not printed as part of this representation.
775func (inc *Include) String() string {
776 equals := " "
777 if inc.hasEquals {
778 equals = " = "
779 }
780 line := fmt.Sprintf("%sInclude%s%s", strings.Repeat(" ", int(inc.leadingSpace)), equals, strings.Join(inc.directives, " "))
781 if inc.Comment != "" {
782 line += " #" + inc.Comment
783 }
784 return line
785}
786
787var matchAll *Pattern
788

Callers

nothing calls this directly

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected