Skip to content

Commit

Permalink
chore: print cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Aug 1, 2024
1 parent 04e7acb commit ad6f926
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions internal/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func versionCheck() (res *CheckResponse, skip bool) {
func GetRootCredentials(cmd *cobra.Command, args []string) error {
clusterName := viper.GetString("flags.cluster-name")

fmt.Print(clusterName)

cluster, err := cluster.GetCluster(clusterName)
if err != nil {
progress.Error(err.Error())
Expand Down
16 changes: 8 additions & 8 deletions internal/progress/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func DisplayLogHints(estimatedTime int) {
headerMessage := renderMessage(header)

if !CanRunBubbleTea {
fmt.Print(headerMessage)
fmt.Println(headerMessage)
return
}

Expand Down Expand Up @@ -159,7 +159,7 @@ func DisplaySuccessMessage(cluster types.Cluster) successMsg {
successMessage := renderMessage(success)

if !CanRunBubbleTea {
fmt.Print(successMessage)
fmt.Println(successMessage)
return successMsg{}
}

Expand Down Expand Up @@ -188,7 +188,7 @@ func DisplayCredentials(cluster types.Cluster) {
headerMessage := renderMessage(header)

if !CanRunBubbleTea {
fmt.Print(headerMessage)
fmt.Println(headerMessage)
return
}

Expand All @@ -202,7 +202,7 @@ func DisplayCredentials(cluster types.Cluster) {
func AddStep(message string) {
renderedMessage := createStep(fmt.Sprintf("%s %s", ":dizzy:", message))
if !CanRunBubbleTea {
fmt.Print(renderedMessage)
fmt.Println(renderedMessage)
return
}

Expand All @@ -211,7 +211,7 @@ func AddStep(message string) {

func CompleteStep(message string) {
if !CanRunBubbleTea {
fmt.Print(message)
fmt.Println(message)
return
}

Expand All @@ -224,7 +224,7 @@ func Success(success string) {
successMessage := renderMessage(success)

if !CanRunBubbleTea {
fmt.Print(successMessage)
fmt.Println(successMessage)
return
}

Expand All @@ -238,7 +238,7 @@ func Error(message string) {
renderedMessage := createErrorLog(message)

if !CanRunBubbleTea {
fmt.Print(renderedMessage)
fmt.Println(renderedMessage)
return
}

Expand Down Expand Up @@ -268,7 +268,7 @@ func StartProvisioning(clusterName string) {

if provisioningCluster.Status == "provisioned" {
fmt.Println("\n cluster has been provisioned via ci")
fmt.Println(fmt.Sprintf("\n kubefirst URL: https://kubefirst.%s", provisioningCluster.DomainName))
fmt.Printf("\n kubefirst URL: https://kubefirst.%s \n", provisioningCluster.DomainName)
done <- true
}
}
Expand Down

0 comments on commit ad6f926

Please sign in to comment.