ReleaseButler 1.0
😙 package manager on GitHub 😙
Loading...
Searching...
No Matches
github.cpp File Reference
#include <sys/wait.h>
#include <unistd.h>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string_view>
#include "core/pack_core.h"
#include "curl_cpp/cppcurl.h"
#include "json.hpp"
#include "tlog.h"
<<<<<<< HEAD #include "utils/confile.h"
#include "utils/env.h"
#include "utils/os-detect.h"
======= #include "utils/env.h"
>>>>>>> dev

Functions

auto install_github (std::string url, const std::string_view name, const std::string_view pack_name, const bool vmode) -> std::string
 handling GitHub release links
 

Function Documentation

◆ 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.