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

Add an argument validator function to tasks and facts #4

Open
hkparker opened this issue Oct 2, 2018 · 0 comments
Open

Add an argument validator function to tasks and facts #4

hkparker opened this issue Oct 2, 2018 · 0 comments

Comments

@hkparker
Copy link
Contributor

hkparker commented Oct 2, 2018

Currently, tasks and facts can have minimum required arguments, so that the command line doesn"t let users create nonsense investigations. There may be situations where the set of valid arguments is fairly restricted, and using a function for this would let fact/task authors define that set from the beginning. The cli could then call this function to ensure the input is valid, and the daemon could call this same function before evaluating a fact or running a task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant