C# Class ZeroInstall.Commands.ProgramUtils

Provides utility methods for application entry points.
Afficher le fichier Open project: 0install/0install-win

Private Properties

Свойство Type Description
FindOtherInstance string
TryRunOtherInstance ExitCode?

Méthodes publiques

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

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

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

Run() public static méthode

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.
Résultat ExitCode