Hey there,
looking at the CLImate docs linked in README.md, one would expect that $cli->json($myJson) (eg inside a custom command) outputs JSON into the terminal - but all it does is return json_encoded data, which then needs to be output to the terminal, like this: $cli->out($cli->json($myJson)) - which is not desired behaviour from the looks of it.
In order to comply with aforementioned docs, PR #33 attempts to solve this.
Cheers,
S1SYPHOS
Hey there,
looking at the
CLImatedocs linked inREADME.md, one would expect that$cli->json($myJson)(eg inside a custom command) outputs JSON into the terminal - but all it does is returnjson_encoded data, which then needs to beoutput to the terminal, like this:$cli->out($cli->json($myJson))- which is not desired behaviour from the looks of it.In order to comply with aforementioned docs, PR #33 attempts to solve this.
Cheers,
S1SYPHOS