C# Class Rosetta.Runner.Program

Main program.
Members protected for testability.
Inheritance: Rosetta.Executable.Executable
Mostra file Open project: andry-tino/Rosetta

Protected Properties

Property Type Description
assemblyPath string
fileConversionRunner IRunner
fileManager FileManager
fileName string
filePath string
help bool
instance Program
outputFolder string
projectPath string
verbose bool

Public Methods

Method Description
Program ( string args ) : System

Initializes a new instance of the Program class.

Protected Methods

Method Description
ConvertFile ( ) : void
ConvertProject ( ) : void
CreateFileConversionRunner ( ) : IRunner
ExecuteCore ( ) : void

Runs the main logic.

HandleError ( Exception e ) : void
HandleExtraParameters ( IEnumerable extra ) : void
HandleNoFeasibleExecution ( ) : void
HandleOptionException ( Mono.Options.OptionException e ) : void
PerformFileConversion ( ConversionArguments arguments ) : string
ShowHelp ( ) : void

Private Methods

Method Description
GetOutputFolderForProject ( string userInput ) : string
Main ( string args ) : void

Entry point.

Method Details

ConvertFile() protected method

protected ConvertFile ( ) : void
return void

ConvertProject() protected method

protected ConvertProject ( ) : void
return void

CreateFileConversionRunner() protected method

protected CreateFileConversionRunner ( ) : IRunner
return IRunner

ExecuteCore() protected method

Runs the main logic.
protected ExecuteCore ( ) : void
return void

HandleError() protected method

protected HandleError ( Exception e ) : void
e System.Exception
return void

HandleExtraParameters() protected method

protected HandleExtraParameters ( IEnumerable extra ) : void
extra IEnumerable
return void

HandleNoFeasibleExecution() protected method

protected HandleNoFeasibleExecution ( ) : void
return void

HandleOptionException() protected method

protected HandleOptionException ( Mono.Options.OptionException e ) : void
e Mono.Options.OptionException
return void

PerformFileConversion() protected static method

protected static PerformFileConversion ( ConversionArguments arguments ) : string
arguments Rosetta.Executable.ConversionArguments
return string

Program() public method

Initializes a new instance of the Program class.
public Program ( string args ) : System
args string
return System

ShowHelp() protected method

protected ShowHelp ( ) : void
return void

Property Details

assemblyPath protected_oe property

protected string assemblyPath
return string

fileConversionRunner protected_oe property

protected IRunner fileConversionRunner
return IRunner

fileManager protected_oe property

protected FileManager fileManager
return FileManager

fileName protected_oe property

protected string fileName
return string

filePath protected_oe property

protected string filePath
return string

help protected_oe property

protected bool help
return bool

instance protected_oe static_oe property

protected static Program instance
return Program

outputFolder protected_oe property

protected string outputFolder
return string

projectPath protected_oe property

protected string projectPath
return string

verbose protected_oe property

protected bool verbose
return bool