Skip to content

Commit 3681ac1

Browse files
authored
Merge pull request #1457 from devstream-io/fix-command-err-when-exit
fix: command-err-when-exit
2 parents f715e55 + bce200f commit 3681ac1

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

cmd/devstream/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var createCMD = &cobra.Command{
1717

1818
func createCMDFunc(cmd *cobra.Command, args []string) {
1919
err := create.Create()
20-
if err.Error() != "^C" {
20+
if err != nil && err.Error() != "^C" {
2121
fmt.Printf("Failed with error: %s", err)
2222
}
2323
}

internal/pkg/create/param/repos.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ func ListRepoScaffolding() []RepoScaffolding {
88
Framework: "Gin",
99
Description: "This is a scaffolding for Golang web app based on Gin framework",
1010
},
11-
{Name: "dtm-repo-scaffolding-golang-cli",
12-
URL: "https://github.com/devstream-io/dtm-repo-scaffolding-golang-cli",
13-
Language: "Golang",
14-
Framework: "Cobra",
15-
Description: "This is a scaffolding for Golang CLI app based on Cobra framework",
16-
},
1711
{Name: "dtm-repo-scaffolding-python-flask",
1812
URL: "https://github.com/devstream-io/dtm-repo-scaffolding-python-flask",
1913
Language: "Python",

staging/dtm-pipeline-templates/github-actions/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
uses: actions/setup-[[ .language.name ]]@v3
4949
with:
5050
[[ .language.name ]]-version: [[ .language.version ]]
51-
[[- if eq .language.name "java" -]]
51+
[[ if eq .language.name "java" ]]
5252
cache: maven
5353
distribution: adopt
54-
[[- end ]]
54+
[[ end ]]
5555
- name: Test
5656
run: |
5757
[[ range .test.command ]]

0 commit comments

Comments
 (0)