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

[v17] Machine ID: Fix usage of "starts" and "configures" in help text #48494

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

timothyb89
Copy link
Contributor

Backport #48415 to branch/v17

This fixes an issue in tbot's CLI help text where all "configure"
commands claimed to start a bot when they were actually generating
a configuration. This was caused by commands being reused for both
start and configure cases and the help text was statically defined.

This fixes the issue by introducing a CommandMode enum to indicate to
a command at construction time whether it will be used for the "start"
or "configure" case, and implements a stringer to return the
appropriate term for each case.
@timothyb89 timothyb89 added the no-changelog Indicates that a PR does not require a changelog entry label Nov 6, 2024
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from stevenGravy November 7, 2024 14:15
@timothyb89 timothyb89 added this pull request to the merge queue Nov 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 7, 2024
@timothyb89 timothyb89 added this pull request to the merge queue Nov 8, 2024
Merged via the queue into branch/v17 with commit 50df51f Nov 8, 2024
41 checks passed
@timothyb89 timothyb89 deleted the bot/backport-48415-branch/v17 branch November 8, 2024 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport machine-id no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants