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
72 stars 16 forks source link

Fixes #161 adds stdin support for policy load #181

Closed infamousjoeg closed 1 year ago

infamousjoeg commented 1 year ago

Fixes #161 by detecting if policy is being provided via stdin. If stdin is not detected, a file is assumed to be loaded. If file path is not present, error is returned.

Tested successfully using:

cybr conjur append-policy -b root << END_POLICY
- !host foo
END_POLICY
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication