Skip to content

Commit

Permalink
Handle stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmik committed Mar 29, 2023
1 parent 5c69448 commit f2f5a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml2jsonnet
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
jsonnet -e "std.parseYaml(importstr '$1')" | jsonnetfmt -
jsonnet -e "std.parseYaml(importstr '${1:-/dev/stdin}')" | jsonnetfmt -

0 comments on commit f2f5a7b

Please sign in to comment.