Skip to content

Commit

Permalink
Merge pull request #17 from datreeio/yaml
Browse files Browse the repository at this point in the history
Yaml
  • Loading branch information
hadar-co committed Jun 14, 2022
2 parents 4a842d9 + 4a4386c commit e299b31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ The following programs are required to be installed on the machine running this
* [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)

### Usage
To use the CRD Extractor, run the following script:
To use the CRD Extractor:
1. Download the [latest release](https://github.com/datreeio/CRDs-catalog/releases/latest/download/crd-extractor.zip) from this repository.
2. Extract, and run the utility:
```
./Utilities/crd-extractor.sh
./crd-extractor.sh
```
5 changes: 3 additions & 2 deletions Utilities/crd-extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ if ! pip3 show pyyaml &> /dev/null; then
while true; do
read -p "Do you wish to install this program? (y/n) " yn
case $yn in
[Yy]* ) pip3 install pyyaml; break;;
[Nn]* ) echo "Exiting..."; exit;;
[Yy] ) pip3 install pyyaml; break;;
"" ) pip3 install pyyaml; break;;
[Nn] ) echo "Exiting..."; exit;;
* ) echo "Please answer 'y' (yes) or 'n' (no).";;
esac
done
Expand Down

0 comments on commit e299b31

Please sign in to comment.