Skip to content

Conversation

@waldekmastykarz
Copy link
Member

Adds prompting on invalid option sets in Zod-enabled commands.

@waldekmastykarz
Copy link
Member Author

To test, run:

  • m365 login -t password > input prompts for username and password
  • m365 login -t certificate > selection prompt for the cert option
  • possible to abort prompt and close the CLI without an exception, by pressing CTRL+C

Notice the additional information that we'll need in refined schema definition to feed prompts.

Let's verify that this approach works and meets all our needs. I'll then add the necessary tests and fix existing Zod-enabled commands to support this properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant