-
Notifications
You must be signed in to change notification settings - Fork 33
Envprofile auto-set in all console commands #244
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
Comments
@radutopala Thanks for bringing up the suggestion for framework improvements. I understand your proposed solution to add I will do my homework and get back to you. |
@radutopala I think, solution could be having a config to add # Application binary console command's configurations.
console {
# Convenient application binary flags configurations.
flags {
# Flag `envprofile`
envprofile {
# Add command/subcommand names into list to enable flag envprofile.
# Framework would initialize app configuration based on flag `envprofile` input
commands = ["cmd1", "cmd2", "cmd1.subcmd1", "cmd2.subcmd2"]
}
}
} Please have a look and let me know. I will schedule it for |
@jeevatkm And these config defined flags will be auto-set also in the root command? Even so, I don't think it's really necessary to have this level of abstraction. You would then need to be able to set different params in this configs entry for each flag, which I think should be done in code instead.
I think we just need a very simple solution here 😄just append the |
@radutopala Okay, lets start with simple design and could be improvised in the future. Solution is - Add |
Can I take this up? |
@goku321 yeah, you're welcome. Give it try, as you will be learning the framework internals. It would provide good path for your future contributions too. |
Thanks @jeevatkm :) |
@goku321 how are you doing? Thought to check with you, I hope you’re learning and progressing. Please let me know if you need any assistance. |
@jeevatkm Thanks for checking on me. In the excitement I took up a lot of open source tickets in parallel and that's why there's a delay from my end. I am clearing the backlog one by one. Give me a couple of days to get back on this. I am really interested and looking forward to contribute to this framework. Thanks for your patience. |
Hi @jeevatkm I have a question: Do I need to add |
Envprofile should be transmitted automatically, somehow, to all Console commands.
This way we can avoid adding
to every command.
The commands are part of the built binary, so it makes sense to have the envprofile in all commands as well.
A solution would be to append the EnvProfile StringFlag to Flags, when the command is added in init.
The text was updated successfully, but these errors were encountered: