File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11package main
22
33import (
4- "log "
4+ "fmt "
55
66 "github.com/spf13/cobra"
77
@@ -17,7 +17,7 @@ var createCMD = &cobra.Command{
1717
1818func createCMDFunc (cmd * cobra.Command , args []string ) {
1919 err := create .Create ()
20- if err != nil {
21- log . Panic ( err )
20+ if err . Error () != "^C" {
21+ fmt . Printf ( "Failed with error: %s" , err )
2222 }
2323}
Original file line number Diff line number Diff line change 11package main
22
33import (
4+ "fmt"
5+
46 "github.com/spf13/cobra"
57
68 "github.com/devstream-io/devstream/internal/pkg/start"
7- "github.com/devstream-io/devstream/pkg/util/log"
89)
910
1011var startCMD = & cobra.Command {
@@ -16,7 +17,7 @@ var startCMD = &cobra.Command{
1617
1718func startCMDFunc (_ * cobra.Command , _ []string ) {
1819 err := start .Start ()
19- if err != nil {
20- log . Fatal ( err )
20+ if err . Error () != "^C" {
21+ fmt . Printf ( "Failed with error: %s" , err )
2122 }
2223}
You can’t perform that action at this time.
0 commit comments