Skip to content

Commit 2ec861b

Browse files
vishalbolludeliahu
authored andcommitted
CLI output redesign (#335)
(cherry picked from commit 1dd305b)
1 parent e5d4aea commit 2ec861b

File tree

9 files changed

+225
-147
lines changed

9 files changed

+225
-147
lines changed

cli/cmd/delete.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121

2222
"github.com/spf13/cobra"
2323

24+
"github.com/cortexlabs/cortex/pkg/lib/console"
2425
"github.com/cortexlabs/cortex/pkg/lib/errors"
2526
"github.com/cortexlabs/cortex/pkg/lib/json"
2627
s "github.com/cortexlabs/cortex/pkg/lib/strings"
@@ -65,6 +66,6 @@ var deleteCmd = &cobra.Command{
6566
if err != nil {
6667
errors.Exit(err, "/delete", "response", string(httpResponse))
6768
}
68-
fmt.Println(deleteResponse.Message)
69+
fmt.Println("\n" + console.Bold(deleteResponse.Message))
6970
},
7071
}

cli/cmd/deploy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121

2222
"github.com/spf13/cobra"
2323

24+
"github.com/cortexlabs/cortex/pkg/lib/console"
2425
"github.com/cortexlabs/cortex/pkg/lib/errors"
2526
"github.com/cortexlabs/cortex/pkg/lib/json"
2627
s "github.com/cortexlabs/cortex/pkg/lib/strings"
@@ -77,5 +78,5 @@ func deploy(force bool, ignoreCache bool) {
7778
errors.Exit(err, "/deploy", "response", string(response))
7879
}
7980

80-
fmt.Println(deployResponse.Message)
81+
fmt.Println("\n" + console.Bold(deployResponse.Message))
8182
}

0 commit comments

Comments
 (0)