ReleaseButler 1.0
😙 package manager on GitHub 😙
|
#include "utils/confile.h"
#include <sys/wait.h>
#include <unistd.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>
#include <optional>
#include <sstream>
#include <string>
#include <string_view>
#include "core/pack_core.h"
#include "json.hpp"
#include "tlog.h"
#include "utils/env.h"
Functions | |
auto | conf_modify (nlohmann::json &json, std::string_view filename, const bool vmode) -> bool |
auto | record2confile (std::string_view url, std::string_view name, std::string_view pack_name, std::string_view version, const bool vmode) -> bool |
Save the passed parameters to the specified file for storage. | |
auto | parse_confile (std::string_view filename, const bool vmode) -> bool |
Parse the passed file name and start downloading and installing, etc. | |
auto | parse_confile_core (std::string_view filename, const bool vmode) -> bool |
The core part of parse_confile() | |
auto conf_modify | ( | nlohmann::json & | json, |
std::string_view | filename, | ||
const bool | vmode ) -> bool |
|
nodiscard |
Parse the passed file name and start downloading and installing, etc.
Because it is necessary to realize the function of traversing all files in the folder, the specific download and installation functions are implemented in parse_confile_core()
`filename` | File name to parse. If the file name is empty, iterate through all json files in the ~/.config/ReleaseButler/ folder |
`vmode` | Whether to output more information (for debugging purposes) |
|
nodiscard |
The core part of parse_confile()
`filename` | File name to parse |
`vmode` | Whether to output more information (for debugging purposes) |
|
nodiscard |
Save the passed parameters to the specified file for storage.
`url` | URL to store |
`name` | Name to store |
`pack_name` | Package name to store |
`version` | Version to store |
`vmode` | Whether to output more information (for debugging purposes) |