-
Notifications
You must be signed in to change notification settings - Fork 50
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
[ENHANCEMENT] Replace DaC init script by percli dac setup
#1695
Conversation
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
fecf2e1
to
360937d
Compare
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
percli dac setup
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
return persesCMD.Run(o, cmd, args) | ||
}, | ||
} | ||
cmd.Flags().StringVar(&o.version, "version", "", "Version of Perses from which to retrieve the CUE dependencies.") |
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.
I'm wondering if we should manage the setup for the go sdk as well here. That's kind of weird from my point of view the command dac init
would support only one language
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.
IMHO better to keep it simple thus CUE-opinionated for now, and to refactor with a next PR when we'd want to make it work with the Go SDK, but that's a matter of preference I guess.
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
Signed-off-by: Antoine THEBAUD <antoine.thebaud@yahoo.fr>
return nil | ||
} | ||
|
||
func (o *option) Validate() error { |
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.
what do you think about checking if the binary cue
is accessible. I'm thinking also we could provide a flag that will give us the path to the binary cue
. So you can point exactly what binary you want to use and also in case cue
is not in the PATH
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.
Let's do that in a different PR. It's actually not that simple.
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.
well done ! 🥳
Description
dac_setup.sh
script replaced by a new CLI commandpercli dac setup
.Checklist
[<catalog_entry>] <commit message>
naming convention using one of thefollowing
catalog_entry
values:FEATURE
,ENHANCEMENT
,BUGFIX
,BREAKINGCHANGE
,DOC
,IGNORE
.