Skip to content

Add expand_vars to expand variables in passed strings - #137

Open
ColinKinloch wants to merge 1 commit into
collabora:mainfrom
ColinKinloch:wip/ckinloch/variable_expansion
Open

Add expand_vars to expand variables in passed strings#137
ColinKinloch wants to merge 1 commit into
collabora:mainfrom
ColinKinloch:wip/ckinloch/variable_expansion

Conversation

@ColinKinloch

@ColinKinloch ColinKinloch commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This code is adapted from the obs-gitlab-runner project.

It adds shellexpand for extracting variables from a given string and shell-words for quoting and escaping variables.

Also adds Variable::masked_value to return masked variables without the overhead from fmt::Display.

First step to fix collabora/lava-gitlab-runner#20

This code is adapted from the `obs-gitlab-runner` project.

It adds `shellexpand` for extracting variables from a given string and
`shell-words` for quoting and escaping variables.

Also adds `Variable::masked_value` to return masked variables without
the overhead from `fmt::Display`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Provide some kind of templating/interpolation/variable expansion in the runner script

1 participant