GeezerVison is showing github.com — cleaned up unused prompts (#106) · commitdev/zero@fe6f2da
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,7 +86,7 @@ name: newProject |
86 | 86 | context: |
87 | 87 | cognitoPoolID: xxx |
88 | 88 | modules: |
89 | | - - source: "github.com/zthomas/commit0-terraform-basic" |
| 89 | + - source: "github.com/commit0/commit0-aws-eks-stack" |
90 | 90 | output: "infrastructure" |
91 | 91 | - source: "github.com/zthomas/react-mui-kit" |
92 | 92 | output: "web-app" |
|
Collapse file
Copy file name to clipboardExpand all lines: internal/config/create_example.go +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,9 +2,10 @@ package config |
2 | 2 |
|
3 | 3 | import ( |
4 | 4 | "fmt" |
5 | | - "github.com/commitdev/commit0/pkg/util/exit" |
6 | 5 | "io/ioutil" |
7 | 6 | "path" |
| 7 | + |
| 8 | + "github.com/commitdev/commit0/pkg/util/exit" |
8 | 9 | ) |
9 | 10 |
|
10 | 11 | const exampleConfig = `name: %s |
@@ -19,7 +20,7 @@ context: |
19 | 20 | # - output: "github-actions" |
20 | 21 |
|
21 | 22 | modules: |
22 | | - - source: "github.com/zthomas/commit0-terraform-basic"` |
| 23 | + - source: "github.com/commit0/commit0-aws-eks-stack"` |
23 | 24 |
|
24 | 25 | func CreateExample(projectName string) { |
25 | 26 | content := []byte(fmt.Sprintf(exampleConfig, projectName)) |
|
Collapse file
Copy file name to clipboardExpand all lines: internal/context/create.go +1-16Lines changed: 1 addition & 16 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,22 +51,7 @@ func chooseCloudProvider(projectConfig *config.Commit0Config) { |
51 | 51 | panic(err) |
52 | 52 | } |
53 | 53 |
|
54 | | - if providerResult == "Amazon AWS" { |
55 | | - projectConfig.Infrastructure.AWS = &config.AWS{} |
56 | | - regionPrompt := promptui.Select{ |
57 | | - Label: "Select AWS Region ", |
58 | | - Items: []string{"us-west-1", "us-west-2", "us-east-1", "us-east-2", "ca-central-1", |
59 | | - "eu-central-1", "eu-west-1", "ap-east-1", "ap-south-1"}, |
60 | | - } |
61 | | - |
62 | | - _, regionResult, err := regionPrompt.Run() |
63 | | - |
64 | | - if err != nil { |
65 | | - exit.Fatal("Prompt failed %v\n", err) |
66 | | - } |
67 | | - |
68 | | - projectConfig.Infrastructure.AWS.Region = regionResult |
69 | | - } else { |
| 54 | + if providerResult != "Amazon AWS" { |
70 | 55 | exit.Fatal("Only the AWS provider is available at this time") |
71 | 56 | } |
72 | 57 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: pkg/credentials/credentials.go -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -94,8 +94,6 @@ func GetSecrets(baseDir string) Secrets { |
94 | 94 | } |
95 | 95 | } |
96 | 96 |
|
97 | | - // @TODO deprecate |
98 | | - // writeSecrets(secretsFile, secrets) |
99 | 97 | return secrets |
100 | 98 | } |
101 | 99 | } |
|