Skip to content

Commit e535fff

Browse files
author
Andrea Falzetti
committed
update logs
1 parent 8614ebf commit e535fff

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

components/gitpod-cli/cmd/build.go renamed to components/gitpod-cli/cmd/rebuild.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
)
2222

2323
var buildCmd = &cobra.Command{
24-
Use: "build",
25-
Short: "Builds the workspace image (useful to debug a workspace custom image)",
26-
Hidden: true,
24+
Use: "rebuild",
25+
Short: "Re-builds the workspace image (useful to debug a workspace custom image)",
26+
Hidden: false,
2727
Run: func(cmd *cobra.Command, args []string) {
2828
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
2929
defer cancel()
@@ -35,7 +35,7 @@ var buildCmd = &cobra.Command{
3535
}
3636
defer client.Close()
3737

38-
tmpDir, err := os.MkdirTemp("", "gp-build-*")
38+
tmpDir, err := os.MkdirTemp("", "gp-rebuild-*")
3939
if err != nil {
4040
log.Fatal("Could not create temporary directory")
4141
return
@@ -51,7 +51,10 @@ var buildCmd = &cobra.Command{
5151
ctx = context.Background()
5252
gitpodConfig, err := util.ParseGitpodConfig(wsInfo.CheckoutLocation)
5353
if err != nil {
54-
log.Fatal("Could not parse gitpod config")
54+
fmt.Println("The .gitpod.yml file cannot be parsed: please check the file and try again")
55+
fmt.Println("")
56+
fmt.Println("For help check out the reference page:")
57+
fmt.Println("https://www.gitpod.io/docs/references/gitpod-yml#gitpodyml")
5558
return
5659
}
5760

@@ -99,10 +102,10 @@ var buildCmd = &cobra.Command{
99102
}
100103

101104
if baseimage == "" {
102-
fmt.Println("Your project is not using any custom Docker image.") // todo: cleanup
103-
fmt.Println("Check out the following docs, to know how to get started") // todo: cleanup
104-
fmt.Println("") // todo: cleanup
105-
fmt.Println("https://www.gitpod.io/docs/configure/workspaces/workspace-image#use-a-public-docker-image") // todo: cleanup
105+
fmt.Println("Your project is not using any custom Docker image.")
106+
fmt.Println("Check out the following docs, to know how to get started")
107+
fmt.Println("")
108+
fmt.Println("https://www.gitpod.io/docs/configure/workspaces/workspace-image#use-a-public-docker-image")
106109
return
107110
}
108111

0 commit comments

Comments
 (0)