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

Specifying -f json to task wait is ignored #379

Open
sandermvanvliet-stack opened this issue Jul 22, 2024 · 2 comments
Open

Specifying -f json to task wait is ignored #379

sandermvanvliet-stack opened this issue Jul 22, 2024 · 2 comments

Comments

@sandermvanvliet-stack
Copy link

The bug

Specifying the -f json option for octopus task wait is ignored

Command to reproduce

C:\Users\joe.blogs> octopus task wait --space Teams -f json ServerTasks-512693
Deploy Enterprise Search release 2024.7.22.1280 to Dev for eastus: Success

Outcome

Basic output is printed.

Versions

cli: 2.3.0

@sandermvanvliet-stack
Copy link
Author

A quick look at the wait.go implementation shows that it straight up printf's:

fmt.Fprintf(out, "%s: %s\n", t.Description, t.State)
so it looks like json isn't supported here.

@reddogaw
Copy link

Would be great if in that json result it returned the final state of the task, e.g. success/failure/etc. Along with setting an appropriate exit code.

Related: #390

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

2 participants