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

Allow modules access to (global) configuration structure #23

Merged
merged 5 commits into from
Jun 26, 2020
Merged

Conversation

skx
Copy link
Owner

@skx skx commented Jun 26, 2020

At the moment we only have one command-line option, -verbose, which is used to control how noisy to be when running a rule-file.

However it would be nice if modules could pay attention to that flag as well as our execution-engine. To allow that we have now defined a structure to hold all global options, and made it available to our plugin/modules.

Once complete this pull-request will close #22.

TODO

  • Update the modules to honour the verbose option, appropriately.,

At the moment we only have one command-line option, `-verbose`,
which is used to control how noisy to be when running a rule-file.

However it would be nice if modules could pay attention to that
flag as well as our execution-engine.  To allow that we have
now defined a structure to hold all global options, and made
it available to our plugin/modules.

This closes #22.
@skx skx self-assigned this Jun 26, 2020
skx added 4 commits June 26, 2020 10:07
This commit updates apt/shell modules to honour -verbose flag
appropriately.
@skx skx merged commit 856e96a into master Jun 26, 2020
@skx skx deleted the 22-config branch June 26, 2020 07:23
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.

Modules should be able to use the -verbose setting
1 participant