Yes or no choice
This component prompts the user to answer a yes or no question.
| Property | Value |
|---|---|
| Interactivity | Required (fails otherwise) |
Demo

API
Example
swift
Noora().yesOrNoChoicePrompt(
title: "Authentication",
question: "Would you like to authenticate?",
defaultAnswer: true,
description: "Authentication is required to use some CLI features."
)Options
| Attribute | Description | Required | Default value |
|---|---|---|---|
title | The title of the prompt. | No | |
question | The question that the user will answer. | Yes | |
defaultAnswer | The default answer. | No | true |
description | A description that provides more context about the question. | No | |
collapseOnSelection | Whether the prompt should collapse after the user selects an option. | No | true |
