Skip to content

Commit

Permalink
Support downloading secrets in 'env-no-quotes' format
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 13, 2021
1 parent 8e3ecc0 commit 42f57cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/models/secrets_format.go
Expand Up @@ -24,15 +24,16 @@ const (
ENV
YAML
DOCKER
ENV_NO_FILE
)

func (s SecretsFormat) String() string {
return [...]string{"json", "env", "yaml", "docker"}[s]
return [...]string{"json", "env", "yaml", "docker", "env-no-quotes"}[s]
}

// OutputFile the default secrets file name
func (s SecretsFormat) OutputFile() string {
return [...]string{"doppler.json", "doppler.env", "secrets.yaml", "doppler.env"}[s]
return [...]string{"doppler.json", "doppler.env", "secrets.yaml", "doppler.env", "doppler.env"}[s]
}

// SecretsFormatList list of supported secrets formats
Expand All @@ -43,4 +44,5 @@ func init() {
SecretsFormatList = append(SecretsFormatList, ENV)
SecretsFormatList = append(SecretsFormatList, YAML)
SecretsFormatList = append(SecretsFormatList, DOCKER)
SecretsFormatList = append(SecretsFormatList, ENV_NO_FILE)
}

0 comments on commit 42f57cb

Please sign in to comment.