MCPcopy Create free account
hub / github.com/cogentcore/core / addMetaConfigFields

Function addMetaConfigFields

cli/config.go:89–91  ·  view source on GitHub ↗

addMetaConfigFields adds meta fields that control the config process to the given map of fields. These fields have no actual effect and map to a placeholder value because they are handled elsewhere, but they must be set to prevent errors about missing flags. The flags that it adds are those in [meta

(allFields *fields)

Source from the content-addressed store, hash-verified

87// they must be set to prevent errors about missing flags. The flags
88// that it adds are those in [metaConfig].
89func addMetaConfigFields(allFields *fields) {
90 addFields(&metaConfigFields{}, allFields, "")
91}
92
93// metaCmds is a set of commands based on [metaConfig] that
94// contains a shell implementation of the help command.

Callers 2

usageFunction · 0.85
parseArgsFunction · 0.85

Calls 1

addFieldsFunction · 0.85

Tested by

no test coverage detected