3 ms·
you can now directly "go run" any import path go run github.com/mikefarah/yq/v3@3.4.1 It also works fine in shebang that expects input of script filepath at
by moondev 5y ago
you can now directly "go run" any import path
go run github.com/mikefarah/yq/v3@3.4.1
It also works fine in shebang that expects input of script filepath at $1. For example "test.yaml"
#!/usr/bin/env -S go run github.com/mikefarah/yq/v3@3.4.1 r
---
some:
yaml: here
chmod +x test.yaml then
./test.yaml some.yaml
returns
test