-
Notifications
You must be signed in to change notification settings - Fork 814
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
Feat :Add template flag to cyctl on module creation #456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment. Thanks @shivamrazorpay for the PR
cyctl/internal/create/modules.go
Outdated
if (templateName != "" && (repo != "" || path != "")) || (templateName == "" && (repo == "" || path == "")) { | ||
log.Fatalf("Error: Either template or (repo and path) must be provided.") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add version here?
if (templateName != "" && (repo != "" || path != "")) || (templateName == "" && (repo == "" || path == "")) { | |
log.Fatalf("Error: Either template or (repo and path) must be provided.") | |
} | |
if (templateName != "" && (repo != "" || path != "" || version != "")) || (templateName == "" && (repo == "" || path == "")) { | |
log.Fatalf("Error: Either template or (repo, path and version) must be provided.") | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version was not a compulsory flag that is why I left it. I have added it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense @shivamrazorpay. This is just users dont use the --version flag to override the version in the template.
Can you push the update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @shivamrazorpay 🧡
closes #
📑 Description
template
flag to cyctl on module creation #439✅ Checks
ℹ Additional context