We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAMLとJSONの相互変換を改善します。今もto_yaml/to_jsonを使えばできますが、意図しない出力になることがあります。
yaml -> json
$ rf -y --no-color "_.to_json(pretty_print:true)" yaml |- { "volumes": [ { "hostPath": { "path": "/run/containerd/containerd.sock", "type": "Socket" }, "name": "containerd-sock" } ] }
json -> yaml
$ rf -j "_.to_yaml" json "---\nvolumes:\n - hostPath:\n path: /run/containerd/containerd.sock\n type: Socket\n name: containerd-sock"
それぞれputsを使うとうまくいく
The text was updated successfully, but these errors were encountered:
json -> yamlは -r オプションをつければよさそう
$ ./build/bin/rf -j -r "_.to_yaml" json --- volumes: - hostPath: path: /run/containerd/containerd.sock type: Socket name: containerd-sock
Sorry, something went wrong.
-yにも-rオプションをつければ解決しそう
No branches or pull requests
YAMLとJSONの相互変換を改善します。今もto_yaml/to_jsonを使えばできますが、意図しない出力になることがあります。
yaml -> json
json -> yaml
それぞれputsを使うとうまくいく
The text was updated successfully, but these errors were encountered: