C# Class ZeroInstall.Publish.Cli.PublishCommand

Represents a single run of the 0publish tool.
Inheritance: ICommand
Show file Open project: 0install/0install-win

Public Methods

Method Description
Execute ( ) : ExitCode
PublishCommand ( IEnumerable args, ITaskHandler handler ) : System

Parses command-line arguments.

Private Methods

Method Description
AddMissing ( IEnumerable elements, ICommandExecutor executor ) : void
BuildOptions ( ) : OptionSet
HandleModify ( FeedEditing feedEditing ) : void

Applies user-selected modifications to a feed.

SaveCatalog ( Catalog catalog ) : void

Saves a catalog.

SaveFeed ( FeedEditing feedEditing ) : void

Saves a feed.

Method Details

Execute() public method

public Execute ( ) : ExitCode
return ExitCode

PublishCommand() public method

Parses command-line arguments.
The user asked to see help information, version information, etc.. contains unknown options.
public PublishCommand ( IEnumerable args, ITaskHandler handler ) : System
args IEnumerable The command-line arguments to be parsed.
handler ITaskHandler A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
return System