Skip to content

Commit 089fd4e

Browse files
committed
update message
1 parent 589b512 commit 089fd4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/grafana-app-sdk/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func getGoModule(goModPath string) (string, error) {
139139
return "", errors.New("unable to locate module in go.mod file")
140140
}
141141

142-
const flagErrorMsgTemplate = "the CLI flags you are trying to use have been removed in favor of a cue-defined configuration block:\n%s\nSet these values in config CUE instead, see https://github.com/grafana/grafana/pull/119543 as an example"
142+
const flagErrorMsgTemplate = "CLI flags have been replaced by CUE defined config values:\n%s\nSee https://github.com/grafana/grafana/pull/119543 as an example of how to migrate your CLI flags to the CUE config"
143143

144144
func errorOnDeprecatedFlags(_ *cobra.Command, err error) error {
145145
removedFlags := make([]string, 0)
@@ -151,7 +151,7 @@ func errorOnDeprecatedFlags(_ *cobra.Command, err error) error {
151151
"-g": "codegen.goGenPath",
152152
"--tsgenpath": "codegen.tsGenPath",
153153
"-t": "codegen.tsGenPath",
154-
"--defencoding": "definitions.encoding",
154+
"--defencoding": "definitions.encoding (if set to 'none' -> definitions.genManifest=false, definitions.genCRDs=false)",
155155
"--defpath": "definitions.path",
156156
"--grouping": "kinds.grouping",
157157
"--postprocess": "codegen.enableK8sPostProcessing",

0 commit comments

Comments
 (0)