Need help with bash-yaml?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jasperes
284 Stars 105 Forks MIT License 79 Commits 4 Opened issues

Description

Read a yaml file and create variables in bash

Services available

!
?

Need anything else?

Contributors list

# 139,197
Shell
Bash
bash-sc...
yaml-pa...
44 commits
# 459,543
Shell
Bash
bash-sc...
yaml-pa...
1 commit
# 458,025
Shell
Bash
bash-sc...
yaml-pa...
1 commit
# 29,421
TypeScr...
Electro...
Windows
desktop...
1 commit
# 164,051
Markdow...
PHP
ESLint
bash-sc...
1 commit
# 131,842
Jupyter...
appindi...
python3
Ubuntu
1 commit

bash-yaml

Tests Lint

Bash script to read a Yaml file and create variables.

Working on

  • Linux
  • OSX

Getting Started

Usage

Copy the

script/yaml.sh
file and import on your script:
source yaml.sh

Then two functions are viable:

  • parse_yaml: Output result from the readed yaml file.
  • create_variables: Read and create variables based on yaml file passed by argument.

Look at

test
folder to see more.

Testing

You can test if your yaml file will be readed correctly based on test folder.

Known issues

  • Object lists must be informed all attributes. Null must be "attr: ".

Credits

This project was started based on @pkuczynski gist. Found it here

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.