Skip to content

Refactor CLI prompt and config logic#47874

Merged
Joerger merged 2 commits intomasterfrom
joerger/cli-prompt-refactor
Oct 24, 2024
Merged

Refactor CLI prompt and config logic#47874
Joerger merged 2 commits intomasterfrom
joerger/cli-prompt-refactor

Conversation

@Joerger
Copy link
Copy Markdown
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.

@aws-amplify-us-west-2
Copy link
Copy Markdown

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

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

@aws-amplify-us-west-2
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread lib/client/mfa/cli.go Outdated
Comment thread lib/client/mfa/cli.go Outdated
Comment thread lib/client/mfa/cli.go Outdated
* Move CLI prompt configuration to CLIPrompt

* Factor out dual prompt in CLI prompt logic.
@Joerger Joerger force-pushed the joerger/cli-prompt-refactor branch from a85d056 to c8d3827 Compare October 24, 2024 21:33
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from probakowski October 24, 2024 21:35
@Joerger Joerger enabled auto-merge October 24, 2024 21:35
@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
@Joerger Joerger deleted the joerger/cli-prompt-refactor branch October 24, 2024 22:48
@public-teleport-github-review-bot
Copy link
Copy Markdown

@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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