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

View File

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

View File

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