Skip to content

feat(abc): src abc variables command#1293

Open
bahrmichael wants to merge 17 commits intomainfrom
mb/src-abc-command
Open

feat(abc): src abc variables command#1293
bahrmichael wants to merge 17 commits intomainfrom
mb/src-abc-command

Conversation

@bahrmichael
Copy link
Copy Markdown
Contributor

@bahrmichael bahrmichael commented Apr 15, 2026

This PR introduces a src abc variables command for setting and deleting variables on workflow instances using the update variables api from Sourcegraph.

Syntax:
src abc variables delete <workflow-instance-id> <variable-name>
src abc variables set <workflow-instance-id> <variable-name>=<variable-value>

With multiple arguments and --var:
src abc variables delete <workflow-instance-id> --var <variable-name-1> --var <variable-name-2>
src abc variables set <workflow-instance-id> --var <variable-name-1>=<variable-value-1> --var <variable-name-2>=<variable-value-2>

Examples:
src abc variables delete QWdlbnRpY1dvcmtmbG93SW5zdGFuY2U6MQ== approval
src abc variables set QWdlbnRpY1dvcmtmbG93SW5zdGFuY2U6MQ== prompt="Make some follow up changes"

The workflow instance id is an argument after the delete/set command, so that we can follow the existing subcommand patterns without having to introduce support for prefix args.

Comment thread cmd/src/abc.go Outdated
Comment thread cmd/src/abc_variables.go Outdated
Comment thread cmd/src/abc_variables.go Outdated
@bahrmichael bahrmichael changed the title src abc command feat(abc): src abc variables command Apr 15, 2026
@bahrmichael bahrmichael marked this pull request as ready for review April 15, 2026 13:32
@bahrmichael bahrmichael requested a review from a team April 15, 2026 13:32
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

Successfully merging this pull request may close these issues.

1 participant