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

Create Env task #429

Open
splatteredbits opened this issue Sep 25, 2024 · 0 comments
Open

Create Env task #429

splatteredbits opened this issue Sep 25, 2024 · 0 comments

Comments

@splatteredbits
Copy link
Member

splatteredbits commented Sep 25, 2024

Create an Env task. It should have one Variables property whose members are the variables to create/edit/update. Each variable's value can be a string, in which case the task sets that variable to that value, or a map. If a map, the variable being edited is assumed to be a list (with values separated by [IO.Path]::PathSeparator ) and values to prepend to the list, append to the list, or removed from the list would be given by Prepend, Append, and Remove properties, respectively. Users could use the Separator property to change the default separator. An empty string is allowed, in which case the value is just added to the beginning or end of the value.

- Env:
    Variables:
        SomeVar: SomeValue
        Path:
            Prepend: VALUE
            Append: VALUE
            Remove: VALUE
            Separator: VALUE
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