MCPcopy Create free account
hub / github.com/conforma/cli / NewTargetParser

Function NewTargetParser

internal/format/target.go:91–93  ·  view source on GitHub ↗

NewTargetParser creates a new TargetParser with the given options.

(targetName string, options Options, writer io.Writer, fs afero.Fs)

Source from the content-addressed store, hash-verified

89
90// NewTargetParser creates a new TargetParser with the given options.
91func NewTargetParser(targetName string, options Options, writer io.Writer, fs afero.Fs) TargetParser {
92 return TargetParser{defaultFormat: targetName, defaultOptions: options, defaultWriter: writer, fs: fs}
93}
94
95// Parse creates a new Target given the provided target name.
96func (tm *TargetParser) Parse(given string) (*Target, error) {

Callers 7

Test_ReportAppstudioFunction · 0.92
Test_ReportHACBSFunction · 0.92
Test_ReportPolicyInputFunction · 0.92
WriteReportFunction · 0.92
captureFallbackTextFunction · 0.92
validateInputCmdFunction · 0.92
TestTargetParserFunction · 0.85

Calls

no outgoing calls

Tested by 4

Test_ReportAppstudioFunction · 0.74
Test_ReportHACBSFunction · 0.74
Test_ReportPolicyInputFunction · 0.74
TestTargetParserFunction · 0.68