Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Add json extension to envs file
Browse files Browse the repository at this point in the history
Signed-off-by: Kadu Artur Prussek <[email protected]>
  • Loading branch information
kaduartur committed Dec 8, 2020
1 parent a8eb25f commit 2a206b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (ro *rootCmd) convertContextsFileToEnvsFile() error {
return err
}

envsPath := filepath.Join(ro.ritchieHome, "envs")
envsPath := filepath.Join(ro.ritchieHome, env.FileName)
envHolder := env.Holder{
Current: ctx.Current,
All: ctx.All,
Expand Down
2 changes: 1 addition & 1 deletion pkg/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package env

const (
FileName = "envs"
FileName = "envs.json"
Current = "Current -> "
Default = "default"
)
Expand Down

0 comments on commit 2a206b3

Please sign in to comment.