ReleaseButler 1.0
😙 package manager on GitHub 😙
Loading...
Searching...
No Matches
os_detect Namespace Reference

Typedefs

using packinfo
 Linux distribution related information.
 

Enumerations

enum  OS_KIND : std::uint8_t { debian , ubuntu , fedora , deepin }
 

Functions

auto OsDetect (const bool vmode) -> std::optional< enum OS_KIND >
 Used to detect the current Linux distributions.
 

Variables

constexpr int OS_KIND = 4
 The types of Linux distributions that the current software can detect.
 
constexpr std::array< packinfo, OS_KINDOS_PACKAGE
 Information about currently supported Linux distributions.
 

Typedef Documentation

◆ packinfo

Initial value:
struct Packinfo {
std::string_view pack_name_;
std::string_view pack_install_name_;
std::string_view os_kind_;
}

Linux distribution related information.

Enumeration Type Documentation

◆ OS_KIND

enum os_detect::OS_KIND : std::uint8_t
Enumerator
debian 
ubuntu 
fedora 
deepin 

Function Documentation

◆ OsDetect()

auto os_detect::OsDetect ( const bool vmode) -> std::optional<enum OS_KIND>

Used to detect the current Linux distributions.

Returns
A std::optional<> class is used to indicate the current system environment.

Variable Documentation

◆ OS_KIND

int os_detect::OS_KIND = 4
constexpr

The types of Linux distributions that the current software can detect.

◆ OS_PACKAGE

std::array<packinfo, OS_KIND> os_detect::OS_PACKAGE
constexpr
Initial value:
= {{
{"deb", "dpkg", "debian"},
{"deb", "dpkg", "ubuntu"},
{"rpm", "dnf", "fedora"},
{"deb", "dpkg", "deepin"},
}}

Information about currently supported Linux distributions.