Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mantil-io/mantil
Browse files Browse the repository at this point in the history
  • Loading branch information
djelusic committed Oct 19, 2021
2 parents 95fb015 + 23d78ae commit 3a0f222
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 28 deletions.
16 changes: 0 additions & 16 deletions workspace/project.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
package workspace

const (
configDir = "config"
configName = "project.yml"
environmentConfigName = "environment.yml"
)

const (
EnvProjectName = "MANTIL_PROJECT"
EnvStageName = "MANTIL_STAGE"
EnvApiURL = "MANTIL_API_URL"
)

const (
TagProjectName = "MANTIL_PROJECT"
)

type Project struct {
Name string `yaml:"name"`
Stages []*Stage `yaml:"stages,omitempty"`
Expand Down
5 changes: 0 additions & 5 deletions workspace/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import (
"fmt"
)

const (
emptyStageName = "dev"
TagStageName = "MANTIL_STAGE"
)

type Stage struct {
Name string `yaml:"name"`
Default bool `yaml:"default,omitempty"`
Expand Down
20 changes: 13 additions & 7 deletions workspace/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ import (

const (
DefaultAccountName = "dev"
)
defaultStageName = "dev"

const (
EnvKey = "MANTIL_KEY"
)
EnvKey = "MANTIL_KEY"
EnvProjectName = "MANTIL_PROJECT"
EnvStageName = "MANTIL_STAGE"
EnvApiURL = "MANTIL_API_URL"

const (
TagWorkspace = "MANTIL_WORKSPACE"
TagKey = "MANTIL_KEY"
TagWorkspace = "MANTIL_WORKSPACE"
TagKey = EnvKey
TagProjectName = EnvProjectName
TagStageName = EnvStageName

configDir = "config"
configName = "project.yml"
environmentConfigName = "environment.yml"
)

var (
Expand Down

0 comments on commit 3a0f222

Please sign in to comment.