Skip to content

Commit d2206f0

Browse files
enx: init logs
1 parent 6bee444 commit d2206f0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

cmd/init.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
package cmd
22

33
import (
4+
"fmt"
5+
46
"github.com/RohitRavindra-dev/devlocal/internal/filesystem"
57
"github.com/spf13/cobra"
68
)
79

810
var initCmd = &cobra.Command{
911
Use: "init",
1012
Short: "Initialize devlocal in this project workspace",
13+
PreRun: func(cmd *cobra.Command, args []string) {
14+
fmt.Println("[Started] to init devlocal for you, dw!")
15+
},
1116
RunE: func(cmd *cobra.Command, args []string) error {
1217
return filesystem.InitilizeDevLocalFilesystem()
1318
},

internal/filesystem/initialization.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ func InitilizeDevLocalFilesystem() error {
6868
if err := seedYamlConfigFile(); err != nil {
6969
return err
7070
}
71+
72+
fmt.Println("[Completed] initializing devlocal setup for your repo")
7173
return nil
7274
}
7375

0 commit comments

Comments
 (0)