Skip to content
New issue

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

Better parsing of SHELL #23

Open
dsherret opened this issue Oct 9, 2021 · 0 comments
Open

Better parsing of SHELL #23

dsherret opened this issue Oct 9, 2021 · 0 comments

Comments

@dsherret
Copy link
Contributor

dsherret commented Oct 9, 2021

Shell has the following structure:

SHELL ["executable", "parameters"]

Example:

SHELL ["/bin/sh", "-c"]
SHELL ["cmd", "/S", "/C"]

Instead of a MiscInstruction where this gets parsed as a BreakableString, it would probably be best to have this parsed as a ShellInstruction and have an elements: StringArray property (StringArray is from #17).

I can contribute this once #17 lands if this sounds good.

https://docs.docker.com/engine/reference/builder/#shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant