MCPcopy Create free account
hub / github.com/coder/envbuilder / skipDeprecatedOptions

Function skipDeprecatedOptions

options/options.go:604–615  ·  view source on GitHub ↗
(options []serpent.Option)

Source from the content-addressed store, hash-verified

602}
603
604func skipDeprecatedOptions(options []serpent.Option) []serpent.Option {
605 var activeOptions []serpent.Option
606
607 for _, opt := range options {
608 isDeprecated := len(opt.UseInstead) > 0
609 if !isDeprecated {
610 activeOptions = append(activeOptions, opt)
611 }
612 }
613
614 return activeOptions
615}
616
617// UnsetEnv unsets all environment variables that are used
618// to configure the options.

Callers 1

MarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected