diff --git a/README.md b/README.md index 1234187..74389d7 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ create `.licignore` in project root Install and run **GOLIC** ```shell # GO 1.16 -go install github.com/AbsaOSS/golic@v0.4.2 +go install github.com/AbsaOSS/golic@v0.4.3 golic inject -c="2021 MyCompany ltd." ``` diff --git a/cmd/root.go b/cmd/root.go index d98134c..413cd69 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -49,9 +49,9 @@ var rootCmd = &cobra.Command{ }, PersistentPostRun: func(cmd *cobra.Command, args []string) { if exitCode == 0 { - logger.Info().Msgf("done %s%s%s", emoji.Rocket, emoji.Rocket, emoji.Rocket) + logger.Info().Msgf("%s%s%s done", emoji.Rocket, emoji.Rocket, emoji.Rocket) } else { - logger.Info().Msgf("done with changes %s", emoji.FaceScreamingInFear) + logger.Info().Msgf("%s exit", emoji.FaceScreamingInFear) } os.Exit(exitCode) }, diff --git a/impl/inject/inject.go b/impl/inject/inject.go index fea942b..9bee023 100644 --- a/impl/inject/inject.go +++ b/impl/inject/inject.go @@ -103,12 +103,14 @@ func (i *Inject) traverse() { if !i.Ignore(path) { var skip bool symbol := "" + cp := aurora.BrightYellow(path) visited++ if err,skip = inject(path,o, config); skip { symbol = "-> skip" + cp = aurora.Magenta(path) skipped++ } - emoji.Printf(" %s %s %s \n",emoji.Minus, aurora.BrightYellow(path), aurora.BrightMagenta(symbol)) + emoji.Printf(" %s %s %s \n",emoji.Minus, cp, aurora.BrightMagenta(symbol)) } return } @@ -133,10 +135,10 @@ func (i *Inject) traverse() { func summary(skipped, visited int) { if skipped == visited { - fmt.Printf("\n %s %v/%v %s\n\n", emoji.Ice, aurora.BrightCyan(visited-skipped), aurora.BrightWhite(visited), aurora.BrightBlue("changed")) + fmt.Printf("\n %s %v/%v %s\n\n", emoji.Ice, aurora.BrightCyan(visited-skipped), aurora.BrightWhite(visited), aurora.BrightCyan("changed")) return } - fmt.Printf("\n %s %v/%v %s\n\n", emoji.Fire, aurora.BrightMagenta(visited-skipped), aurora.BrightWhite(visited), aurora.BrightYellow("changed")) + fmt.Printf("\n %s %v/%v %s\n\n", emoji.Fire, aurora.BrightYellow(visited-skipped), aurora.BrightWhite(visited), aurora.BrightYellow("changed")) } func inject(path string, o Options, config *Config) (err error, skip bool) {