Skip to content

Set environment variable per command #22

@ben-auo

Description

@ben-auo

How can I do the equivalent of $ FOO='BAR' bash -c 'echo $FOO' ?

	cmd := execute.ExecTask{
		Command:     "echo",
		Args:        []string{"$FOO"},
		StreamStdio: false,
	}

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