C# Class ZeroInstall.Commands.ProgramUtils

Provides utility methods for application entry points.
显示文件 Open project: 0install/0install-win

Private Properties

Property Type Description
FindOtherInstance string
TryRunOtherInstance ExitCode?

Public Methods

Method Description
Init ( ) : void

Common initialization code to be called by every Frontend executable right after startup.

Run ( [ exeName, [ args, [ handler ) : ExitCode

Parses command-line arguments and performs the indicated action. Performs error handling.

Private Methods

Method Description
FindOtherInstance ( bool needsMachineWide = true ) : string
TryRunOtherInstance ( [ exeName, [ args, [ handler, bool needsMachineWide ) : ExitCode?

Tries to run a command in another instance of Zero Install deployed on this system.

Method Details

Init() public static method

Common initialization code to be called by every Frontend executable right after startup.
public static Init ( ) : void
return void

Run() public static method

Parses command-line arguments and performs the indicated action. Performs error handling.
public static Run ( [ exeName, [ args, [ handler ) : ExitCode
exeName [ The name of the executable to use as a reference in help messages and self-invokation.
args [ The arguments to be processed.
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
return ExitCode