Skip to content

feat(cli): add favorite/unfavorite commands #11793

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

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Conversation

johnstcn
Copy link
Member

Part of #7912

Depends on #11791

Adds CLI commands allowing users to add/remove workspaces from their favorites.

@johnstcn johnstcn self-assigned this Jan 24, 2024
@johnstcn johnstcn marked this pull request as ready for review January 24, 2024 12:57
@johnstcn johnstcn requested review from mafredri and mtojek January 24, 2024 12:57

buf.Reset()

inv, root = clitest.New(t, "unfavorite", ws.Workspace.Name)
Copy link
Member

Choose a reason for hiding this comment

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

What will happen if a user marks their workspace as "favorite" twice? Is it relevant?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nothing interesting really will happen. It'll get updated again, which is essentially a no-op. We could check if the workspace is already favorited, but the overhead probably isn't worth the effort.

Base automatically changed from cj/favorite-workspaces-redux to main January 24, 2024 13:39
@johnstcn johnstcn force-pushed the cj/cli-favorite-workspace branch from 6c20099 to 0cc97bb Compare January 24, 2024 13:42
@johnstcn johnstcn merged commit 70dc282 into main Jan 24, 2024
@johnstcn johnstcn deleted the cj/cli-favorite-workspace branch January 24, 2024 14:05
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants