Skip to content

Commit 402f78a

Browse files
committed
chore: dtm create/start commands logs improvement
Signed-off-by: Daniel Hu <[email protected]>
1 parent 0a6239c commit 402f78a

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

internal/pkg/create/create.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ func create(params *param.Param) error {
3939
4040
kubectl port-forward service/%s 8080:8080 -n default
4141
42-
Then you can visit this app by http://127.0.0.1:8080 in browser
43-
Thanks for using DevStream! 😊
42+
Then you can visit this app by http://127.0.0.1:8080 in your browser.
43+
44+
Happy Hacking! 😊
4445
`
4546
fmt.Printf(finalMessage, params.GitHubRepo)
4647
return nil

internal/pkg/start/start.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import (
88
)
99

1010
func Start() error {
11-
fmt.Println("I'll prepare some tools for you.")
11+
fmt.Println("I'll give some tools for you.")
12+
time.Sleep(time.Second)
13+
fmt.Println("Are you ready?")
1214
time.Sleep(time.Second)
1315
fmt.Println("Let's get started.")
1416
fmt.Println()

internal/pkg/start/tool/argocd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var toolArgocd = tool{
4343
return err
4444
}
4545

46-
if err = execCommand([]string{"helm", "install", argocdChartReleaseName, argocdChartName, "-n", argocdNamespace}); err != nil {
46+
if err = execCommand([]string{"helm", "install", argocdChartReleaseName, argocdChartName, "-n", argocdNamespace, "--wait", "--create-namespace"}); err != nil {
4747
return err
4848
}
4949

internal/pkg/start/tool/helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func confirm(name string) bool {
1212
prompt := promptui.Prompt{
13-
Label: fmt.Sprintf("Install %s now.", name),
13+
Label: fmt.Sprintf("Install %s now", name),
1414
IsConfirm: true,
1515
}
1616

0 commit comments

Comments
 (0)