#include <optional>
#include <string>
#include <string_view>
Go to the source code of this file.
|
auto | install (std::string_view url, std::string_view name, std::string_view pack_name, std::optional< std::string_view > sha256_val, bool vmode, bool install) -> bool |
| Programs for download and installation.
|
|
auto | install_core (std::string_view pack_name, bool vmode) -> bool |
| Core functions that implement the installation functionality.
|
|
auto | install_github (std::string url, std::string_view name, std::string_view pack_name, const bool vmode) -> std::string |
| handling GitHub release links
|
|
◆ install()
auto install |
( |
std::string_view | url, |
|
|
std::string_view | name, |
|
|
std::string_view | pack_name, |
|
|
std::optional< std::string_view > | sha256_val, |
|
|
bool | vmode, |
|
|
bool | install ) -> bool |
|
nodiscard |
Programs for download and installation.
But in fact install()
does not perform all of the functions involved in installation that are permitted by the software's operation. It's the parsing of the file that implements all of the features allowed for installation.
- Parameters
-
`url` | The home page of the website where the program is hosted |
`name` | Name of the software |
`pack_name` | Name of the package to download, e.g. fastfetch-linux-amd64.deb |
`sha256_val` | SHA256 of the file to download. |
`vmode` | Whether to output more information (for debugging purposes) |
`install` | Whether to call the corresponding package manager to install after download |
- Returns
- Returns a bool indicating whether the function was executed correctly.
◆ install_core()
auto install_core |
( |
std::string_view | pack_name, |
|
|
bool | vmode ) -> bool |
|
nodiscard |
Core functions that implement the installation functionality.
- Parameters
-
`pack_name` | Name of the package to download, e.g. fastfetch-linux-amd64.deb |
`vmode` | Whether to output more information (for debugging purposes) |
- Returns
- Returns a bool indicating whether the function was executed correctly.
◆ install_github()
auto install_github |
( |
std::string | url, |
|
|
std::string_view | name, |
|
|
std::string_view | pack_name, |
|
|
const bool | vmode ) -> std::string |
|
nodiscard |
handling GitHub release links
- Parameters
-
`url` | The home page of the website where the program is hosted |
`name` | Name of the software |
`pack_name` | Name of the package to download, e.g. fastfetch-linux-amd64.deb |
`vmode` | Whether to output more information (for debugging purposes) |
- Returns
- Returns a bool indicating whether the function was executed correctly.