Table of Contents

Class ProgramBase<TRunner, TProgram>

Namespace
MASES.JNet.CLI
Assembly
MASES.JNetCLICore.dll

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

string

EnableInteractive

Set to true to use Interactive

public virtual bool EnableInteractive { get; }

Property Value

bool

EnableMainClassToRun

Set to true to use MainClassToRun

public virtual bool EnableMainClassToRun { get; }

Property Value

bool

EnableRunCommand

Set to true to use RunCommand

public virtual bool EnableRunCommand { get; }

Property Value

bool

EnableScript

Set to true to use Script

public virtual bool EnableScript { get; }

Property Value

bool

EntryLine

The line proposing info about using of the program

public virtual string EntryLine { get; }

Property Value

string

ExampleLines

A set of string with examples

public virtual string ExampleLines { get; }

Property Value

string

LogoLine

The initial logo

public virtual string LogoLine { get; }

Property Value

string

ProgramName

The program name

public virtual string ProgramName { get; }

Property Value

string

ProgramVersion

The program version

public virtual Version ProgramVersion { get; }

Property Value

Version

ProjectName

The project of the ProgramName

public virtual string ProjectName { get; }

Property Value

string

SpecificArguments

Arguments specific to the class extending ProgramBase<TRunner, TProgram>

public virtual string SpecificArguments { get; }

Property Value

string

Methods

InternalMain(string[])

public static Task InternalMain(string[] args)

Parameters

args string[]

Returns

Task

ShowHelp(string)

public virtual void ShowHelp(string errorString = null)

Parameters

errorString string

ShowLogo(string)

public virtual void ShowLogo(string logoTrailer = null)

Parameters

logoTrailer string