instante / neon-configurator
Instante NEON configurator is a command-line utility to update NEON files.
dev-master
2017-03-14 12:58 UTC
Requires
- php: >=5.6.0
- nette/neon: ~2.4
Requires (Dev)
- instante/php-test-suite: @dev
- jakub-onderka/php-parallel-lint: ~0.9
- kdyby/console: @dev
Suggests
- kdyby/console: to use neon configurator as a console command
This package is not auto-updated.
Last update: 2024-11-10 03:21:42 UTC
README
Makes updates to neon
configuration files super easy.
Includes integration as a Kdyby\Console
command
or running through simple php file included in composer bin.
Usage:
<project root>$ vendor/bin/update-neon path/to/neon-file.neon path.to.key value
<project root>$ vendor/bin/update-neon app/config/local.neon parameters.webmasterEmail john@doe.com
Field types are parsed and written back as NEON values. Note that shell consumes quotes, so you have to backslash them if you want to actually insert a string. like in this example:
$ vendor/bin/update-neon demo.neon foo yes
$ vendor/bin/update-neon demo.neon bar "yes"
$ vendor/bin/update-neon demo.neon baz \"yes\"
results in
foo: true
bar: true
baz: "yes"
Requirements
- PHP 5.6 or higher
- NEON 2.4
Installation
The best way to install Instante neon-configurator is using Composer:
$ composer require instante/neon-configurator
Caveats
- The utility is currently unable to preserve comments and drops all of them.