Class AddAlias
- Namespace
- ZeroInstall.Commands.Desktop
- Assembly
- 0install.dll
Create an alias for a Run command.
public class AddAlias : AppCommand
- Inheritance
-
AddAlias
- Inherited Members
Constructors
AddAlias(ICommandHandler)
Common base class for commands that manage an AppList.
public AddAlias(ICommandHandler handler)
Parameters
handler
ICommandHandler
Fields
AltName
public const string AltName = "add-alias"
Field Value
Name
public const string Name = "alias"
Field Value
Properties
AdditionalArgsMax
The maximum number of AdditionalArgs allowed. Checked in Parse(IReadOnlyList<string>).
protected override int AdditionalArgsMax { get; }
Property Value
Description
A short description of what this command does.
public override string Description { get; }
Property Value
Usage
The additional arguments to be displayed after the command name in the help text.
public override string Usage { get; }
Property Value
Methods
ExecuteHelper()
Template method that performs the actual operation.
protected override ExitCode ExecuteHelper()
Returns
- ExitCode
The exit status code to end the process with.