Skip to content

Commit 7ecc4f8

Browse files
feat: enhance user feedback during initialization
- Added informative messages to guide users when no project token is specified. - Included next steps for users after successful initialization of Codacy configuration.
1 parent a3efa99 commit 7ecc4f8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

cmd/init.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ var initCmd = &cobra.Command{
3333
config.Config.CreateLocalCodacyDir()
3434

3535
if len(codacyRepositoryToken) == 0 {
36-
fmt.Println("No project token was specified, skipping fetch configurations ")
36+
fmt.Println()
37+
fmt.Println("ℹ️ No project token was specified, skipping fetch configurations")
3738
noTools := []tools.Tool{}
3839
err := createConfigurationFile(noTools)
3940
if err != nil {
@@ -53,7 +54,13 @@ var initCmd = &cobra.Command{
5354
log.Fatal(err)
5455
}
5556
}
56-
fmt.Println("Run install command to install dependencies.")
57+
fmt.Println()
58+
fmt.Println("✅ Successfully initialized Codacy configuration!")
59+
fmt.Println()
60+
fmt.Println("🔧 Next steps:")
61+
fmt.Println(" 1. Run 'codacy-cli install' to install all dependencies")
62+
fmt.Println(" 2. Run 'codacy-cli analyze' to start analyzing your code")
63+
fmt.Println()
5764
},
5865
}
5966

0 commit comments

Comments
 (0)