Download the PHP package zicht/goggle without Composer
On this page you can find all versions of the php package zicht/goggle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package goggle
Short Description Introspect and edit config values from the command line
License MIT
Informations about the package goggle
Goggle
Not to be confused with Google. Google finds anything, Goggle will help you look at anything.
Nearly anything ;)
What is it?
A command line tool to easily read values from config files and output them in several different formats, with chaining through piping in mind.
Supported formats
- Input:
json
,yaml
andini
- Output:
json
,yaml
,ini
,text
(column based), formatted console table, markdown table
Usage
Read a 'deep' value from a configuration file
Read value FILE from path element0..elementN
and output it in the specified format.
For example given a JSON string {"a": {"b": {"c": 123}}}
, reading the value
'123' would be done by executing goggle get a b c
Process a set of values
Example
Example 1
Show package names, versions and authors, extracted from composer.lock
Or only get the one for symfony/symfony
:
Example 2
Read the database host name from the following file and output it's value:
Given the following file:
This would output:
Example 3
See all values available in a composer lock file
Or read all package names and versions from a composer lockfile:
Example 4
Or simply convert yml to json:
or:
Example 5
Set the database host name in the following file:
Running this:
Will change the value to:
Of course the -e
flag is especially useful for this command, but it's not compulsory.
More documentation by example
Read the behat features to see more possibilities.
Reference
Read the wiki for a more detailed reference.
All versions of goggle with dependencies
symfony/expression-language Version ^2
symfony/var-dumper Version ^2
symfony/yaml Version ^2
zicht/itertools Version ^2
zicht/util Version ^1