Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OctoLab Cookbook: how to use composer.yml and stop creating issues about

OctoLab Cookbook: how to use composer.yml and stop creating issues about

Start using all features of YAML with Composer today.

Kamil Samigullin

May 23, 2016
Tweet

More Decks by Kamil Samigullin

Other Decks in Education

Transcript

  1. Installation • https://www.python.org/downloads/ (but most cases it is already exists)

    • pip install pyyaml • or apt-get install python-yaml • or yum install python-yaml • etc. Requirements • Python • PyYAML
  2. - fourth: integrate all together <command> = python -c \

    "import sys, yaml, json; \ sys.tracebacklimit = 0; \ print(json.dumps(yaml.load(open(sys.argv[1]).read()), indent=2))" # ~/.bash_profile alias yaml2json = <command> # use it yaml2json composer.yml > composer.json
  3. • Convert YAML to JSON Online with related tools on

    different languages for console • composer-yaml • Example of usage • package.meta initiative Useful links
  4. Thank you for your attention! Have questions? Kamil Samigullin a

    some developer [email protected] @ikamilsk github.com/kamilsk linkedin.com/in/kamilsk