-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stdin support for reading policy (#188)
* Add stdin support for reading policy * Add ability to read from stdin for a policy to be analyzed such as `cat file.json | parliament` * Adds new FileType argument to read from stdin and don't allow both --file and stdin * Implements #163 * Simplify implementation to use single parameter * Since we can test if we are using stdin vs --file attribute we can just use the same attribute instead of 2 * Update argument help * Fix filename parameter passed to analyze_policy_string
- Loading branch information
1 parent
3873cf5
commit 1e5cb87
Showing
1 changed file
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters