infamousjoeg / cybr-cli

A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @CyberArk suite of products.
Apache License 2.0
71 stars 15 forks source link

Enable "cybr conjur *-policy..." to read from stdin #161

Closed jodyhuntatx closed 1 year ago

jodyhuntatx commented 2 years ago

Want to be able to do something like this in a script:

cybr conjur append-policy -b root -f -- << END_POLICY
- !host foo
END_POLICY
infamousjoeg commented 1 year ago

example of implementation: https://github.com/napicella/go-linux-pipes/blob/master/cmd.go