Skip to content

Commit 3a25145

Browse files
committed
Use config filename in the save
1 parent 5af0369 commit 3a25145

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commands/case.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ func CustomCaseAction(context *cli.Context) error {
9494
return err
9595
}
9696

97-
metaData, err := config.LoadMetaFromPath(path.Join(cwd, configuration.ConfigFileName))
97+
configFileName := configuration.ConfigFileName
98+
metaData, err := config.LoadMetaFromPath(path.Join(cwd, configFileName))
9899
if err != nil {
99100
color.Red("Failed to load egor MetaData ")
100101
return err
@@ -121,7 +122,7 @@ func CustomCaseAction(context *cli.Context) error {
121122
}
122123
}
123124

124-
metaData.SaveToFile(path.Join(cwd, "egor-meta.json"))
125+
metaData.SaveToFile(path.Join(cwd, configFileName))
125126

126127
if err != nil {
127128
color.Red("Failed to save to MetaData")

0 commit comments

Comments
 (0)