MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / FillEnvFileContent

Method FillEnvFileContent

internal/plugins/plugin.go:175–187  ·  view source on GitHub ↗
(buffer *bytes.Buffer)

Source from the content-addressed store, hash-verified

173}
174
175func (o *Setting) FillEnvFileContent(buffer *bytes.Buffer) {
176 if o.IsDefined() {
177 buffer.WriteString(o.EnvVariable)
178 buffer.WriteString("=")
179 if o.Type == SettingTypeBool {
180 v, _ := ParseBool(o.Value)
181 buffer.WriteString(fmt.Sprintf("%v", v))
182 } else {
183 buffer.WriteString(o.Value)
184 }
185 buffer.WriteString("\n")
186 }
187}
188
189func ParseBoolElseFalse(val string) (ret bool) {
190 ret, _ = ParseBool(val)

Callers 4

SaveEnvFileMethod · 0.45
FillEnvFileContentMethod · 0.45

Calls 2

IsDefinedMethod · 0.95
ParseBoolFunction · 0.85

Tested by 1