Class ProgramBase<TRunner, TProgram>
A base classs to be used in CLI executable
public class ProgramBase<TRunner, TProgram> where TRunner : JNetCoreBase<TRunner> where TProgram : ProgramBase<TRunner, TProgram>
Type Parameters
TRunner
The class extending JNetCoreBase<T>
TProgram
The class extending ProgramBase<TRunner, TProgram>
- Inheritance
-
ProgramBase<TRunner, TProgram>
- Inherited Members
Properties
DefaultClassToRun
The default class to run in CLI version if neighter ApplicationClassToRun nor ClassToRun are set
public virtual string DefaultClassToRun { get; }
Property Value
EnableInteractive
Set to true to use Interactive
public virtual bool EnableInteractive { get; }
Property Value
EnableMainClassToRun
Set to true to use MainClassToRun
public virtual bool EnableMainClassToRun { get; }
Property Value
EnableRunCommand
Set to true to use RunCommand
public virtual bool EnableRunCommand { get; }
Property Value
EnableScript
public virtual bool EnableScript { get; }
Property Value
EntryLine
The line proposing info about using of the program
public virtual string EntryLine { get; }
Property Value
ExampleLines
A set of string with examples
public virtual string ExampleLines { get; }
Property Value
LogoLine
The initial logo
public virtual string LogoLine { get; }
Property Value
ProgramName
The program name
public virtual string ProgramName { get; }
Property Value
ProgramVersion
The program version
public virtual Version ProgramVersion { get; }
Property Value
ProjectName
The project of the ProgramName
public virtual string ProjectName { get; }
Property Value
SpecificArguments
Arguments specific to the class extending ProgramBase<TRunner, TProgram>
public virtual string SpecificArguments { get; }
Property Value
Methods
InternalMain(string[])
public static Task InternalMain(string[] args)
Parameters
args
string[]
Returns
ShowHelp(string)
public virtual void ShowHelp(string errorString = null)
Parameters
errorString
string
ShowLogo(string)
public virtual void ShowLogo(string logoTrailer = null)
Parameters
logoTrailer
string