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

Capability to prompt for a user input #60

Open
MarbolanGos opened this issue Jul 28, 2023 · 1 comment
Open

Capability to prompt for a user input #60

MarbolanGos opened this issue Jul 28, 2023 · 1 comment

Comments

@MarbolanGos
Copy link

Dear milkcheck dev team,

I would like to know if it is possible to run milkcheck and to prompt for a user input in case of missing variables.

I explain the case here, we would like to run milkcheck on different nodes and then to sign the action at the end, thus this needs to be user specific. We already use some export USER_SIGNATURE=XX but if the user does not have this export made, it would be interesting to prompt it at the end of the process.

Any idea?

Regards,
Fabien Archambault.

@cedeyn
Copy link
Collaborator

cedeyn commented Aug 9, 2023

Hi Fabien,
Today, the only prompt available in milkcheck is implemented to confirm an action (confirm_action parameter milkcheck.conf file). There is no way to do that with the current code.
I think the best way to get something working would be to use variables in Milkcheck, but again, there is no way to ask the user if a variable is missing. Maybe we can think about something in this area.
Anyway, with the current code, a wrapper to generate such variable in a dedicated file should make the job.

I hope aswered your question :)

Regards,

Aurélien

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

No branches or pull requests

2 participants