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

Be able to pipe a file into parliament #163

Open
0xdabbad00 opened this issue Dec 7, 2020 · 0 comments
Open

Be able to pipe a file into parliament #163

0xdabbad00 opened this issue Dec 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@0xdabbad00
Copy link
Collaborator

I should be able to run: cat file.json | parliament

@0xdabbad00 0xdabbad00 added the enhancement New feature or request label Dec 7, 2020
briandbecker added a commit to briandbecker/parliament that referenced this issue Mar 23, 2021
* 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 duo-labs#163
briandbecker added a commit to briandbecker/parliament that referenced this issue Mar 23, 2021
* 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 duo-labs#163
steiza pushed a commit that referenced this issue Mar 25, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant