plugify
1.0.0.0
|
Interface for the package manager provided to the user, implemented in the core. More...
#include <package_manager.hpp>
Public Member Functions | |
virtual bool | Initialize ()=0 |
Initialize the package manager. More... | |
virtual void | Terminate ()=0 |
Terminate the package manager. | |
virtual bool | IsInitialized () const =0 |
Check if the package manager is initialized. More... | |
virtual bool | Reload ()=0 |
Reload the package manager. More... | |
virtual void | InstallPackage (std::string_view packageName, std::optional< int32_t > requiredVersion={})=0 |
Install a package. More... | |
virtual void | InstallPackages (std::span< const std::string > packageNames)=0 |
Install multiple packages. More... | |
virtual void | InstallAllPackages (const std::filesystem::path &manifestFilePath, bool reinstall)=0 |
Install all packages listed in a manifest file. More... | |
virtual void | InstallAllPackages (const std::string &manifestUrl, bool reinstall)=0 |
Install all packages listed in a manifest file from a remote location. More... | |
virtual void | UpdatePackage (std::string_view packageName, std::optional< int32_t > requiredVersion={})=0 |
Update a specific package. More... | |
virtual void | UpdatePackages (std::span< const std::string > packageNames)=0 |
Update multiple packages. More... | |
virtual void | UpdateAllPackages ()=0 |
Update all installed packages. | |
virtual void | UninstallPackage (std::string_view packageName)=0 |
Uninstall a specific package. More... | |
virtual void | UninstallPackages (std::span< const std::string > packageNames)=0 |
Uninstall multiple packages. More... | |
virtual void | UninstallAllPackages ()=0 |
Uninstall all installed packages. | |
virtual void | SnapshotPackages (const std::filesystem::path &manifestFilePath, bool prettify)=0 |
Snapshot the list of installed packages to a manifest file. More... | |
virtual bool | HasMissedPackages () const =0 |
Check if there are missed packages (not installed but required by other packages). More... | |
virtual bool | HasConflictedPackages () const =0 |
Check if there are conflicted packages (installed with conflicting versions). More... | |
virtual void | InstallMissedPackages ()=0 |
Install missed packages. | |
virtual void | UninstallConflictedPackages ()=0 |
Uninstall conflicted packages. | |
virtual LocalPackageOpt | FindLocalPackage (std::string_view packageName) const =0 |
Find a local package by name. More... | |
virtual RemotePackageOpt | FindRemotePackage (std::string_view packageName) const =0 |
Find a remote package by name. More... | |
virtual std::vector< LocalPackage > | GetLocalPackages () const =0 |
Get a vector of all local packages. More... | |
virtual std::vector< RemotePackage > | GetRemotePackages () const =0 |
Get a vector of all remote packages. More... | |
Interface for the package manager provided to the user, implemented in the core.
Definition at line 28 of file package_manager.hpp.
|
pure virtual |
Find a local package by name.
packageName | Name of the package to find. |
|
pure virtual |
Find a remote package by name.
packageName | Name of the package to find. |
|
pure virtual |
Get a vector of all local packages.
|
pure virtual |
Get a vector of all remote packages.
|
pure virtual |
Check if there are conflicted packages (installed with conflicting versions).
|
pure virtual |
Check if there are missed packages (not installed but required by other packages).
|
pure virtual |
Initialize the package manager.
|
pure virtual |
Install all packages listed in a manifest file.
manifestFilePath | Path to the manifest file. |
reinstall | True to reinstall packages, false otherwise. |
|
pure virtual |
Install all packages listed in a manifest file from a remote location.
manifestUrl | URL of the manifest file. |
reinstall | True to reinstall packages, false otherwise. |
|
pure virtual |
Install a package.
packageName | Name of the package to install. |
requiredVersion | Optional required version of the package. |
|
pure virtual |
Install multiple packages.
packageNames | Span of package names to install. |
|
pure virtual |
Check if the package manager is initialized.
|
pure virtual |
Reload the package manager.
|
pure virtual |
Snapshot the list of installed packages to a manifest file.
manifestFilePath | Path to the manifest file. |
prettify | True to prettify the output, false for compact format. |
|
pure virtual |
Uninstall a specific package.
packageName | Name of the package to uninstall. |
|
pure virtual |
Uninstall multiple packages.
packageNames | Span of package names to uninstall. |
|
pure virtual |
Update a specific package.
packageName | Name of the package to update. |
requiredVersion | Optional required version of the package. |
|
pure virtual |
Update multiple packages.
packageNames | Span of package names to update. |