yq/cmd
Robert Lee 652e6ff728 Allow Shebang (#!) line #1851
Fairly dirty way of allowing shebang lines

This snippet will read the first two characters of a file passed in to
`yq` and remove the line if it begins with "`#!`". This will allow `yq`
to continue parsing it as though the shebang line was not there.

I was not able to find canonical documentation that the shebang is
limited to a single line or cannot include continuation characters.
However these seem to be accepted truths. See:

https://linux.die.net/man/2/execve

https://en.wikipedia.org/wiki/Shebang_(Unix)#Syntax
2023-11-16 16:40:10 +00:00
..
constant.go Add `--nul-output|-0` flag to separate element with NUL character (#1550) 2023-03-29 09:51:55 +11:00
evaluate_all_command.go Spellig with cspell 2023-09-19 10:43:11 +10:00
evaluate_sequence_command.go Fix typos (#1798) 2023-09-26 14:18:18 +10:00
root.go Spellig with cspell 2023-09-19 10:43:11 +10:00
shell-completion.go Bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#1380) 2022-10-17 15:15:19 +11:00
unwrap_flag.go Spellig with cspell 2023-09-19 10:43:11 +10:00
utils.go Allow Shebang (#!) line #1851 2023-11-16 16:40:10 +00:00
version_test.go Clean up cli help doc, add github and doc links 2021-07-09 14:58:09 +10:00
version.go Bumping version 2023-09-26 14:48:52 +10:00