From 0ff00d27b2fd524c76fcfac1836b7aad8fe03069 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Mon, 9 May 2022 20:41:54 +0900 Subject: Change the suffix of a description file from -description.json to -report.json --- cmd/vartan/compile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/vartan/compile.go') diff --git a/cmd/vartan/compile.go b/cmd/vartan/compile.go index 69de14b..16eef16 100644 --- a/cmd/vartan/compile.go +++ b/cmd/vartan/compile.go @@ -107,14 +107,14 @@ func runCompile(cmd *cobra.Command, args []string) (retErr error) { return err } - var descFileName string + var reportFileName string { _, grmFileName := filepath.Split(grmPath) - descFileName = fmt.Sprintf("%v-description.json", strings.TrimSuffix(grmFileName, ".vr")) + reportFileName = fmt.Sprintf("%v-report.json", strings.TrimSuffix(grmFileName, ".vr")) } opts := []grammar.CompileOption{ - grammar.EnableDescription(descFileName), + grammar.EnableReporting(reportFileName), } switch strings.ToLower(*compileFlags.class) { case "slr": -- cgit v1.2.3