Skip to content

Convert string to array items, docker exec form. #263

@RashiqAzhan

Description

@RashiqAzhan

Is your feature request related to a problem? Please describe.
A way to convert a CLI command into exec form for docker files. Basically, convert it into an array.

Describe the solution you'd like
From:

CMD npm run dev -- --filter=frontend -- --host

To:

CMD ["npm", "run", "dev", "--", "--filter=frontend", "--", "--host"]

Also the reverse should be possible, custom delimiters, custom braces, with or without quote etc.

Describe alternatives you've considered
Looked for other extensions but couldn't find any.

Additional context
Should be useful to convert to exec form for docker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions