Skip to content

Commit 7237d98

Browse files
chore: removed unwnated clo
1 parent 92c06b4 commit 7237d98

15 files changed

Lines changed: 8 additions & 43 deletions

File tree

cmd/auth/login.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewLoginCommand() *cli.Command {
3636
if err := config.SaveToken(token); err != nil {
3737
return fmt.Errorf("could not save your token: %w", err)
3838
}
39-
pterm.Success.Println("You're now signed in! Run 'createos whoami' to confirm your account.")
39+
pterm.Success.Println("You're signed in.")
4040
return nil
4141
}
4242

@@ -66,16 +66,14 @@ func NewLoginCommand() *cli.Command {
6666
}
6767

6868
func loginWithAPIToken() error {
69-
pterm.Println(pterm.Gray(" You can find your API token in your CreateOS dashboard."))
70-
fmt.Println()
7169
token, err := pterm.DefaultInteractiveTextInput.WithMask("*").Show("Paste your API token")
7270
if err != nil || token == "" {
7371
return fmt.Errorf("sign in cancelled")
7472
}
7573
if err := config.SaveToken(token); err != nil {
7674
return fmt.Errorf("could not save your token: %w", err)
7775
}
78-
pterm.Success.Println("You're now signed in! Run 'createos whoami' to confirm your account.")
76+
pterm.Success.Println("You're signed in.")
7977
return nil
8078
}
8179

@@ -156,6 +154,6 @@ func loginWithBrowser() error {
156154
}
157155

158156
fmt.Println()
159-
pterm.Success.Println("You're signed in! Run 'createos whoami' to confirm your account.")
157+
pterm.Success.Println("You're signed in.")
160158
return nil
161159
}

cmd/auth/logout.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package auth
33
import (
44
"fmt"
55

6-
"github.com/pterm/pterm"
76
"github.com/urfave/cli/v2"
87

98
"github.com/NodeOps-app/createos-cli/internal/config"
@@ -27,9 +26,6 @@ func NewLogoutCommand() *cli.Command {
2726
}
2827

2928
fmt.Println("You've been signed out successfully.")
30-
fmt.Println()
31-
pterm.Println(pterm.Gray(" Tip: To sign back in, run:"))
32-
pterm.Println(pterm.Gray(" createos login"))
3329
return nil
3430
},
3531
}

cmd/auth/whoami.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ func NewWhoamiCommand() *cli.Command {
4444
pterm.Printfln(" %s %s", pterm.Gray("ID "), u.ID)
4545
pterm.Printfln(" %s %s", pterm.Gray("Member since "), memberSince)
4646
fmt.Println()
47-
pterm.Println(pterm.Gray(" Tip: To see your projects, run:"))
48-
pterm.Println(pterm.Gray(" createos projects list"))
49-
fmt.Println()
5047

5148
return nil
5249
},

cmd/cronjobs/cronjobs_create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ Examples:
159159
return err
160160
}
161161

162-
pterm.Success.Println("Cron job created.")
163-
fmt.Println("ID:", id)
162+
pterm.Success.Printf("Cron job created. ID: %s\n", id)
164163
return nil
165164
},
166165
}

cmd/deployments/deployments_delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func newDeploymentDeleteCommand() *cli.Command {
1616
ArgsUsage: "[project-id] <deployment-id>",
1717
Description: "Stops a deployment that is currently building or deploying.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
2222
if !ok {
@@ -37,7 +37,7 @@ func newDeploymentDeleteCommand() *cli.Command {
3737
}
3838

3939
if !confirm {
40-
fmt.Println("Cancelled. Your deployment was not stopped.")
40+
fmt.Println("Aborted. Your deployment was not cancelled.")
4141
return nil
4242
}
4343

cmd/deployments/deployments_retrigger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func newDeploymentRetriggerCommand() *cli.Command {
1616
ArgsUsage: "[project-id] <deployment-id>",
1717
Description: "Creates a new deployment based on an existing one.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
2222
if !ok {

cmd/deployments/deployments_wakeup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func newDeploymentWakeupCommand() *cli.Command {
1616
ArgsUsage: "[project-id] <deployment-id>",
1717
Description: "Resumes a deployment that is currently sleeping.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
2222
if !ok {

cmd/env/list.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ func newEnvListCommand() *cli.Command {
4545

4646
if len(vars) == 0 {
4747
fmt.Println("No environment variables set.")
48-
fmt.Println()
49-
pterm.Println(pterm.Gray(" Set one with:"))
50-
pterm.Println(pterm.Gray(" createos env set KEY=value"))
5148
return nil
5249
}
5350

cmd/init/init.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ func NewInitCommand() *cli.Command {
6565
}
6666
if len(projects) == 0 {
6767
fmt.Println("You don't have any projects yet.")
68-
fmt.Println()
69-
pterm.Println(pterm.Gray(" Create a project on the CreateOS dashboard first, then run 'createos init' again."))
7068
return nil
7169
}
7270

@@ -137,9 +135,6 @@ func NewInitCommand() *cli.Command {
137135
_ = config.EnsureGitignore(dir)
138136

139137
pterm.Success.Printf("Linked to %s\n", projectName)
140-
fmt.Println()
141-
pterm.Println(pterm.Gray(" Project config saved to .createos.json"))
142-
pterm.Println(pterm.Gray(" Commands like deploy, status, and logs will now auto-detect this project."))
143138
return nil
144139
},
145140
}

cmd/open/open.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ func NewOpenCommand() *cli.Command {
8282
}
8383
if len(deploymentsWithURL) == 0 {
8484
fmt.Println("No live URL found — the project may not be deployed yet.")
85-
fmt.Println()
86-
pterm.Println(pterm.Gray(" Deploy first, then try again."))
8785
return nil
8886
}
8987
if len(deploymentsWithURL) == 1 {

0 commit comments

Comments
 (0)