Skip to content

Warn user based on flags#19

Merged
eunomie merged 3 commits intomainfrom
warn-flags
Oct 15, 2024
Merged

Warn user based on flags#19
eunomie merged 3 commits intomainfrom
warn-flags

Conversation

@eunomie
Copy link
Owner

@eunomie eunomie commented Oct 15, 2024

For run command, if flags like volume, mount, privileged, ports, etc are set, ask confirmation to the user before to run.

Confirmation can be skipped by using --yes/-y flag or by setting accept-the-risk: true in the local configuration file.

Fixes #5

Like volume mount, pid, privileged, etc

Signed-off-by: Yves Brissaud <yves.brissaud@gmail.com>
Signed-off-by: Yves Brissaud <yves.brissaud@gmail.com>
In this case it will not prompt for user confirmation

Signed-off-by: Yves Brissaud <yves.brissaud@gmail.com>
@eunomie eunomie merged commit 09899c9 into main Oct 15, 2024
@eunomie eunomie deleted the warn-flags branch October 15, 2024 20:33
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

Successfully merging this pull request may close these issues.

Warn user before to run with certain flags

1 participant