1
0
mirror of https://github.com/Infisical/infisical.git synced 2025-03-17 00:01:55 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
709beeee80 Add environment name as an option to .infisical.json 2023-02-14 15:55:13 -08:00
2 changed files with 5 additions and 0 deletions
cli/packages

@ -104,6 +104,10 @@ var secretsSetCmd = &cobra.Command{
util.HandleError(err, "Unable to get your local config details")
}
if environmentName == '' {
environmentName := workspaceFile.environment
}
loggedInUserDetails, err := util.GetCurrentLoggedInUserDetails()
if err != nil {
util.HandleError(err, "Unable to authenticate")

@ -40,6 +40,7 @@ type Workspace struct {
type WorkspaceConfigFile struct {
WorkspaceId string `json:"workspaceId"`
Environment string `json:"environment"`
}
type SymmetricEncryptionResult struct {