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

ctx: unify path string #577

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Conversation

sttts
Copy link
Contributor

@sttts sttts commented Jul 11, 2024

The path string printed after every command should be working as argument, i.e. it is supposed like an absolute identifier of a context like a control plane. This was not the case before this PR. Especially the up ctx . --short output was its own code path with invalid string generation (e.g. lacking the disconnected/ prefix).

Fixes: #575

Signed-off-by: Dr. Stefan Schimanski <[email protected]>
@@ -147,7 +147,7 @@ func (r *Root) Items(ctx context.Context, upCtx *upbound.Context, navCtx *navCon
}

func (r *Root) breadcrumbs() string {
return upboundRootStyle.Render("Upbound")
return ""
Copy link
Member

Choose a reason for hiding this comment

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

So we need this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Removed.

Signed-off-by: Dr. Stefan Schimanski <[email protected]>
@sttts sttts enabled auto-merge July 11, 2024 15:57
@sttts sttts merged commit ebbe7c2 into upbound:main Jul 11, 2024
6 of 7 checks passed
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.

invalid output "up ctx . --short"
2 participants