Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #355 from kaduartur/fix/init_phrase
Browse files Browse the repository at this point in the history
[Fix] init warning msg
  • Loading branch information
sandokandias authored Aug 5, 2020
2 parents 630d0e6 + 2088efd commit f40b266
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ const (
)

var (
addRepoInfo = prompt.Yellow(`To create new formulas you must add a repository with the name "commons" and
that contains the templates for creation following the structure of the repository.
See example [https://github.com/ZupIT/ritchie-formulas/blob/master/templates/create_formula/README.md]`)
addRepoInfo = `You can keep the configuration without adding the community repository,
but you will need to provide a git repo with the formulas templates and add them with
rit add repo command, naming this repository obligatorily as "commons".
See how to do this on the example: [https://github.com/ZupIT/ritchie-formulas/blob/master/templates/create_formula/README.md]`
errMsg = prompt.Yellow("It was not possible to add the commons repository at this time, please try again later.")
ErrInitCommonsRepo = errors.New(errMsg)
CommonsRepoURL = "https://github.com/ZupIT/ritchie-formulas"
Expand Down Expand Up @@ -76,7 +78,7 @@ func (in initCmd) runPrompt() CommandRunnerFunc {

if !choose {
fmt.Println()
prompt.Info(addRepoInfo)
prompt.Warning(addRepoInfo)
fmt.Println()
fmt.Println(addRepoMsg)
return nil
Expand Down

0 comments on commit f40b266

Please sign in to comment.