C# Class PowerArgs.Cli.CliHelper

A class that provides a framework for building interactive command line interfaces.
Afficher le fichier Open project: adamabdelhamed/PowerArgs Class Usage Examples

Méthodes publiques

Méthode Description
CliHelper ( ) : System

Creates a new CLI object.

IsUserSure ( ConsoleString about ) : bool

Asks the user if they are sure about performing some operation and returns true if they indicate yes and false if they indicate no.

IsUserSure ( string about ) : bool

Asks the user if they are sure about performing some operation and returns true if they indicate yes and false if they indicate no.

Prompt ( ConsoleString message ) : string

Prompts the user to select a value from a set of options.

Prompt ( string message ) : string

Prompts the user to select a value from a set of options.

PromptForLine ( string message ) : string

Prompts the user for a line of input with the given message

Method Details

CliHelper() public méthode

Creates a new CLI object.
public CliHelper ( ) : System
Résultat System

IsUserSure() public méthode

Asks the user if they are sure about performing some operation and returns true if they indicate yes and false if they indicate no.
public IsUserSure ( ConsoleString about ) : bool
about ConsoleString The message to display. 'Are you sure?' will be apended.
Résultat bool

IsUserSure() public méthode

Asks the user if they are sure about performing some operation and returns true if they indicate yes and false if they indicate no.
public IsUserSure ( string about ) : bool
about string The message to display. 'Are you sure?' will be apended.
Résultat bool

Prompt() public méthode

Prompts the user to select a value from a set of options.
public Prompt ( ConsoleString message ) : string
message ConsoleString the prompt message
Résultat string

Prompt() public méthode

Prompts the user to select a value from a set of options.
public Prompt ( string message ) : string
message string the prompt message
Résultat string

PromptForLine() public méthode

Prompts the user for a line of input with the given message
public PromptForLine ( string message ) : string
message string the prompt message
Résultat string