C# Class ZeroInstall.Commands.CliCommands.AddAlias

Create an alias for a Run command.
Inheritance: IntegrationCommand
ファイルを表示 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
AddAlias ( [ handler ) : System
Execute ( ) : ExitCode

Private Methods

Method Description
CreateAlias ( string aliasName, FeedUri interfaceUri, string command = null ) : ExitCode

Creates a new alias.

GetAppAlias ( [ appList, [ aliasName, AppEntry &foundAppEntry ) : AppAlias
NeedsReopenTerminal ( bool machineWide ) : bool

Determines whether the user may need to reopen the terminal to be able to use newly created aliases.

ResolveOrRemove ( string aliasName ) : ExitCode

Resolves or removes existing aliases.

Method Details

AddAlias() public method

public AddAlias ( [ handler ) : System
handler [
return System

Execute() public method

public Execute ( ) : ExitCode
return ExitCode