25 std::string_view pack_name_;
26 std::string_view pack_install_name_;
27 std::string_view os_kind_;
34 {
"deb",
"dpkg",
"debian"},
35 {
"deb",
"dpkg",
"ubuntu"},
36 {
"rpm",
"dnf",
"fedora"},
37 {
"deb",
"dpkg",
"deepin"},
46auto OsDetect(
const bool vmode) -> std::optional<enum OS_KIND>;
OS_KIND
Definition os-detect.h:14
@ deepin
Definition os-detect.h:18
@ ubuntu
Definition os-detect.h:16
@ fedora
Definition os-detect.h:17
@ debian
Definition os-detect.h:15
auto OsDetect(const bool vmode) -> std::optional< enum OS_KIND >
Used to detect the current Linux distributions.
Definition os-detect.cpp:10
constexpr std::array< packinfo, OS_KIND > OS_PACKAGE
Information about currently supported Linux distributions.
Definition os-detect.h:33
struct Packinfo { std::string_view pack_name_; std::string_view pack_install_name_; std::string_view os_kind_;} packinfo
Linux distribution related information.
Definition os-detect.h:24