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

Fixes format for project-group view #318

Closed
wants to merge 0 commits into from

Conversation

nate-christensen
Copy link

@nate-christensen nate-christensen commented Jan 28, 2024

When running octopus project-group view "group" -f json, it wouldn't print in json or anything else for that matter.

This fixes an issue I ran into as well as half of issue #312. I can try to fix the project view one as well if this is merged.

@CLAassistant
Copy link

CLAassistant commented Jan 28, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

@tleed5 tleed5 left a comment

Choose a reason for hiding this comment

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

Looks good overall, just need to add back the output for the basic format 😄

go.mod Outdated
@@ -24,6 +24,7 @@ require (
)

require (
github.com/OctopusDeploy/go-octopusdeploy v1.8.6 // indirect
Copy link

Choose a reason for hiding this comment

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

This isn't been used by the looks of it, running go mod tidy should remove this and also fix the merge conflict

}

return nil
return output.PrintArray(allProjects, cmd, output.Mappers[*projects.Project]{
Copy link

Choose a reason for hiding this comment

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

For the basic output format, it should return what it did previously, otherwise we are losing some functionality.

Example of the previous basic output.

Default Project Group (ProjectGroups-1)
No description provided

Projects:
NonVcs (nonvcs)
VCS (vcs)

View this project group in Octopus Deploy: http://localhost:8066/app#/Spaces-1/projects?projectGroupId=ProjectGroups-1

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.

3 participants