C# Class DotNetMigrations.Core.CommandHelpWriter

ファイルを表示 Open project: jpoehls/dotnetmigrations Class Usage Examples

Public Methods

Method Description
CommandHelpWriter ( ILogger logger ) : System
WriteArgumentList ( Type argumentsType ) : void

Writes out the list of arguments for the given arguments Type.

WriteArgumentSyntax ( Type argumentsType ) : void

Writes out the argument syntax for the given arguments Type.

WriteCommandHelp ( ICommand command, string executableName ) : void

Writes out the help verbiage for the given command.

WriteCommandList ( IEnumerable commands ) : void

Writes out a list of the given command names and descriptions.

Private Methods

Method Description
IsOptional ( ICustomAttributeProvider property ) : bool

Returns True/False whether the given property is optional.

Method Details

CommandHelpWriter() public method

public CommandHelpWriter ( ILogger logger ) : System
logger ILogger
return System

WriteArgumentList() public method

Writes out the list of arguments for the given arguments Type.
public WriteArgumentList ( Type argumentsType ) : void
argumentsType System.Type
return void

WriteArgumentSyntax() public method

Writes out the argument syntax for the given arguments Type.
public WriteArgumentSyntax ( Type argumentsType ) : void
argumentsType System.Type
return void

WriteCommandHelp() public method

Writes out the help verbiage for the given command.
public WriteCommandHelp ( ICommand command, string executableName ) : void
command ICommand
executableName string
return void

WriteCommandList() public method

Writes out a list of the given command names and descriptions.
public WriteCommandList ( IEnumerable commands ) : void
commands IEnumerable
return void