Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update service init command #247

Merged
merged 7 commits into from
Jun 22, 2018
Merged

Update service init command #247

merged 7 commits into from
Jun 22, 2018

Conversation

antho1404
Copy link
Member

@antho1404 antho1404 commented Jun 22, 2018

Now the service init use a template to generate the mesg.yml file and correct a bug because of the dependency attribute

fix #244

string(service.PublishNone),
})
func buildService(cmd *cobra.Command) (res *service.Service) {
res = &service.Service{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to init the res variable otherwise memory error.

}

func ask(label string, value string) string {
func ask(label string, value string, validator survey.Validator) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name is now mandatory

@NicolasMahe NicolasMahe merged commit 13addcd into dev Jun 22, 2018
@NicolasMahe NicolasMahe deleted the 244-fix-service-init-command branch June 22, 2018 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command service init generate a not valid mesg.yml
2 participants