Class StoreMan.StoreSubCommand
- Namespace
- ZeroInstall.Commands.Basic
- Assembly
- 0install.dll
public abstract class StoreMan.StoreSubCommand : CliCommand, ICliSubCommand
- Inheritance
-
StoreMan.StoreSubCommand
- Implements
- Derived
- Inherited Members
Constructors
StoreSubCommand(ICommandHandler)
protected StoreSubCommand(ICommandHandler handler)
Parameters
handler
ICommandHandler
Properties
ParentName
The name of the CliMultiCommand this command is a sub-command of.
public string ParentName { get; }
Property Value
Methods
AddToStore(ManifestDigest, Action<IBuilder>)
Adds a new implementation to the ImplementationStore.
protected ExitCode AddToStore(ManifestDigest manifestDigest, Action<IBuilder> build)
Parameters
manifestDigest
ManifestDigestThe digest the implementation is supposed to match.
build
Action<IBuilder>Callback for building the implementation.
Returns
Exceptions
- OperationCanceledException
The user canceled the task.
- UnauthorizedAccessException
Access to a resource was denied.
- IOException
An IO operation failed.
- DigestMismatchException
The implementation's content doesn't match the
manifestDigest
.
SetStorePaths(IReadOnlyList<string>)
Sets the paths of the directories to use as ImplementationStores. Keeps using the defaults if the list is empty.
protected void SetStorePaths(IReadOnlyList<string> paths)
Parameters
paths
IReadOnlyList<string>
Exceptions
- DirectoryNotFoundException
A specified directory does not exist.