-
Notifications
You must be signed in to change notification settings - Fork 988
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(cli): run
command watch mode
#2353
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 feedback via slack
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.
Otherwise, the refactor lgtm
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.
One last comment and should be ready for merge
Description 📣
This PR aims to add support for secret watching. The user will now be able to pass a
--watch
flag to theinfisical run
command. When thewatch
flag is passed, Infisical will automatically reload the command passed toinfisical run
.New flow example
infisical run --watch --comand="while true; do printenv; sleep 500000; done"
. (Both --command and -- supports the newwatch
flag)This is especially useful in local development setups, where the user usually would have to manually restart the entire process for the new secrets to load in. This implementation streamlines everything and in a sense acts like Nodemon acts when detecting changes in a Node.js project.
This can also be used in production environments where you'd want to reload an application when secret changes happen in Infisical.
Type ✨