C# 클래스 PowerArgs.Cli.CliHelper

A class that provides a framework for building interactive command line interfaces.
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CliHelper() 공개 메소드

Creates a new CLI object.
public CliHelper ( ) : System
리턴 System

IsUserSure() 공개 메소드

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.
리턴 bool

IsUserSure() 공개 메소드

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.
리턴 bool

Prompt() 공개 메소드

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

Prompt() 공개 메소드

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

PromptForLine() 공개 메소드

Prompts the user for a line of input with the given message
public PromptForLine ( string message ) : string
message string the prompt message
리턴 string