Skip to content
apfelstrudelsPublic
forked from grasmash/yaml-cli

About

A command line tool for reading and manipulating yaml files.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

Build Status Packagist Total Downloads Coverage Status

Yet another command line tool for reading and manipulating yaml files, built on the Symfony console component.

Commands:

Command Description
get:value Get a value for a specific key in a YAML file.
lint Validates that a given YAML file has valid syntax.
unset:key Unset a specific key in a YAML file.
update:key Change a specific key in a YAML file.
update:value Update the value for a specific key in a YAML file.

Installation

composer require grasmash/yaml-cli

Example usage:

./vendor/bin/yaml-cli get:value somefile.yml some-key
./vendor/bin/yaml-cli lint somefile.yml
./vendor/bin/yaml-cli unset:value somefile.yml some-key
./vendor/bin/yaml-cli update:key somefile.yml old-key new-key
./vendor/bin/yaml-cli update:value somefile.yml some-key some-value

Similar tools:

Recognition

This project was inspired by the yaml commands in Drupal Console.

About

A command line tool for reading and manipulating yaml files.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages