Title: Add a -s / --serialize command line option. · Issue #19 · loadsys/CakePHP-ConfigReadShell · GitHub
Open Graph Title: Add a -s / --serialize command line option. · Issue #19 · loadsys/CakePHP-ConfigReadShell
X Title: Add a -s / --serialize command line option. · Issue #19 · loadsys/CakePHP-ConfigReadShell
Description: It would be handy to be able to spit out a sub-section of a Cake app's Configure array in a format that could be consumed by another PHP script easily. This would improve the fidelity of data transfer for things like our Shell Scripts' d...
Open Graph Description: It would be handy to be able to spit out a sub-section of a Cake app's Configure array in a format that could be consumed by another PHP script easily. This would improve the fidelity of data trans...
X Description: It would be handy to be able to spit out a sub-section of a Cake app's Configure array in a format that could be consumed by another PHP script easily. This would improve the fidelity of data t...
Opengraph URL: https://github.com/loadsys/CakePHP-ConfigReadShell/issues/19
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a -s / --serialize command line option.","articleBody":"It would be handy to be able to spit out a sub-section of a Cake app's Configure array in a format that could be consumed by another PHP script easily. This would improve the fidelity of data transfer for things like our Shell Scripts' `db-credentials` script, which currently uses the ConfigReadShell to dump DB connection values to bash variables, then has to parse that format back into a PHP data structure before spitting it back out in the appropriate format itself.\n\nIt'd be great to be able to do something like this from a calling script instead:\n\n``` php\n\u003c?php\n$cmd = escapeshellcmd('bin/cake ConfigRead --serialize Key.SubValueWithSubArrays');\n$serialized = [];\n$code = 0;\nexec($cmd, $serialized, $code);\n$data = unserialize($serialized);\necho $data['sub-sub-key']['property'];\n```\n","author":{"url":"https://github.com/beporter","@type":"Person","name":"beporter"},"datePublished":"2015-06-28T16:33:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/19/CakePHP-ConfigReadShell/issues/19"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:314990e1-e1ae-7a2b-a54f-7960c5854d0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5E2:3CD7D9:D00D8A:10F4B3E:6A5C2ECB |
| html-safe-nonce | b6cec8ad6142eb1904285bb0863a7842db30a4a15af0b714a450b0bff39c38fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUUyOjNDRDdEOTpEMDBEOEE6MTBGNEIzRTo2QTVDMkVDQiIsInZpc2l0b3JfaWQiOiI4MjQwNzkyNDc2MDQ0NzY2OTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1a8914c65522f1247330fad6ea2633837898e682d467f76ed83ebc979a15493 |
| hovercard-subject-tag | issue:91614228 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/loadsys/CakePHP-ConfigReadShell/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ded47095ff4b52320fe67717a2281c4bf8798f3d27b546aa9ec2bff53d8eaec2/loadsys/CakePHP-ConfigReadShell/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ded47095ff4b52320fe67717a2281c4bf8798f3d27b546aa9ec2bff53d8eaec2/loadsys/CakePHP-ConfigReadShell/issues/19 |
| og:image:alt | It would be handy to be able to spit out a sub-section of a Cake app's Configure array in a format that could be consumed by another PHP script easily. This would improve the fidelity of data trans... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/loadsys/CakePHP-ConfigReadShell git https://github.com/loadsys/CakePHP-ConfigReadShell.git |
| octolytics-dimension-user_id | 16822 |
| octolytics-dimension-user_login | loadsys |
| octolytics-dimension-repository_id | 28868945 |
| octolytics-dimension-repository_nwo | loadsys/CakePHP-ConfigReadShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28868945 |
| octolytics-dimension-repository_network_root_nwo | loadsys/CakePHP-ConfigReadShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width