Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactor CLI prompt and config logic #47874

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Oct 23, 2024

Refactor CLI prompt and config logic in preparation for some UX changes coming with SSO MFA. These changes will make sense in the context of the SSO MFA changes to follow. This PR is separate in order to backport this refactored logic and simplify future backports when needed.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-47874.d3pp5qlev8mo18.amplifyapp.com

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-47874.d212ksyjt6y4yg.amplifyapp.com

@Joerger Joerger added the no-changelog Indicates that a PR does not require a changelog entry label Oct 23, 2024
@Joerger Joerger mentioned this pull request Oct 23, 2024
Copy link
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Many thanks for the standalone refactor, Brian! Looking good.

lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
lib/client/mfa/cli.go Outdated Show resolved Hide resolved
* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.
@Joerger Joerger added this pull request to the merge queue Oct 24, 2024
Merged via the queue into master with commit db8cadf Oct 24, 2024
41 checks passed
@Joerger Joerger deleted the joerger/cli-prompt-refactor branch October 24, 2024 22:48
@public-teleport-github-review-bot

@Joerger See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed

Joerger added a commit that referenced this pull request Oct 24, 2024
* Refactor CLI prompt and config logic.

* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.

* Make cli config a field rather than embedded; Add NewCLIPromptV2.
Joerger added a commit that referenced this pull request Oct 24, 2024
* Refactor CLI prompt and config logic.

* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.

* Make cli config a field rather than embedded; Add NewCLIPromptV2.
github-merge-queue bot pushed a commit that referenced this pull request Oct 25, 2024
* Refactor CLI prompt and config logic.

* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.

* Make cli config a field rather than embedded; Add NewCLIPromptV2.
github-merge-queue bot pushed a commit that referenced this pull request Oct 28, 2024
* Refactor CLI prompt and config logic.

* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.

* Make cli config a field rather than embedded; Add NewCLIPromptV2.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backport/branch/v15 backport/branch/v16 no-changelog Indicates that a PR does not require a changelog entry refactoring size/sm tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants