Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

cli: Fix panic in waypoint plugin cli #3095

Merged
merged 3 commits into from
Mar 14, 2022
Merged

Conversation

briancain
Copy link
Member

Prior to this commit, if a user just ran waypoint plugin with no
arguments, the CLI would panic assuming that an argument was passed in.
This commit fixes that by looking at the argument slice and printing an
error if none was passed in. It fixes up some of the other panics to
print errors and return 1.

Prior to this commit, if a user just ran `waypoint plugin` with no
arguments, the CLI would panic assuming that an argument was passed in.
This commit fixes that by looking at the argument slice and printing an
error if none was passed in. It fixes up some of the other panics to
print errors and return 1.
@briancain briancain added pr/no-changelog No automatic changelog entry required for this pull request backport/0.7.x labels Mar 14, 2022
@briancain briancain requested a review from a team March 14, 2022 15:46
@github-actions github-actions bot added the core label Mar 14, 2022
@briancain briancain removed the pr/no-changelog No automatic changelog entry required for this pull request label Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants