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

[FIX] init warning msg #355

Merged
merged 1 commit into from
Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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