Skip to content

extended automation command to include Space#587

Merged
benPearce1 merged 1 commit intomainfrom
bp/fix-automation-for-space
Apr 7, 2026
Merged

extended automation command to include Space#587
benPearce1 merged 1 commit intomainfrom
bp/fix-automation-for-space

Conversation

@benPearce1
Copy link
Copy Markdown
Contributor

Automation commands produced in interactive mode always dropped the space from the automation command leaving it in a broken state if it is copied and pasted else where.

Fixes #295

Before:

> octopus project create
? You have not specified a Space. Please select one: empty
? Name test
? You have not specified a Lifecycle for this project. Please select one: Default Lifecycle
? You have not specified a Project group for this project. Please select one: Default Project Group
? Would you like to use Config as Code? No

Successfully created project 'test' (test), with lifecycle 'Default Lifecycle' in project group 'Default Project Group'.
View this project on Octopus Deploy: http://localhost:8066/app#/Spaces-822/projects/Projects-2142

Automation Commands:
octopus project create --name 'test' --group 'Default Project Group' --lifecycle 'Default Lifecycle' --no-prompt

After:

> octopus project create          
? You have not specified a Space. Please select one: Default
? Name test
? You have not specified a Lifecycle for this project. Please select one: Default Lifecycle
? You have not specified a Project group for this project. Please select one: Default Project Group
? Would you like to use Config as Code? No

Successfully created project 'test' (test), with lifecycle 'Default Lifecycle' in project group 'Default Project Group'.
View this project on Octopus Deploy: http://localhost:8066/app#/Spaces-1/projects/Projects-2141

Automation Commands:
octopus project create --space 'Default' --name 'test' --group 'Default Project Group' --lifecycle 'Default Lifecycle' --no-prompt

@benPearce1 benPearce1 requested a review from a team April 7, 2026 04:57
Copy link
Copy Markdown
Contributor

@mik-ky mik-ky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with and without space context set

@benPearce1 benPearce1 merged commit 9c835d1 into main Apr 7, 2026
4 checks passed
@benPearce1 benPearce1 deleted the bp/fix-automation-for-space branch April 7, 2026 07:14
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.

Generated automation commands do not include the space from the original command

2 participants