C# Class DotNetMigrations.Core.CommandHelpWriter

Afficher le fichier Open project: jpoehls/dotnetmigrations Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IsOptional ( ICustomAttributeProvider property ) : bool

Returns True/False whether the given property is optional.

Method Details

CommandHelpWriter() public méthode

public CommandHelpWriter ( ILogger logger ) : System
logger ILogger
Résultat System

WriteArgumentList() public méthode

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

WriteArgumentSyntax() public méthode

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

WriteCommandHelp() public méthode

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

WriteCommandList() public méthode

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