mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Recfactored and simplified more code
- Added function to convert color string to ansi color string - Added `trim` and `join` utility functions - Added initial plugin test case - Implemented `config get` command to see config properties - Improved logging functionality and removed duplicate logging functions - Removed unused functions - Fixed more styling issues - Fixed some CLI commands not working correctly - Fixed CLI documentation format - Fixed some error handling issues
This commit is contained in:
parent
e48c54aa40
commit
02a4e879a8
21 changed files with 541 additions and 384 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "rest_api.hpp"
|
||||
#include <cstdio>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <rapidjson/document.h>
|
||||
|
|
@ -48,11 +49,11 @@ namespace gdpm::package {
|
|||
};
|
||||
|
||||
struct params {
|
||||
args_t sub_commands;
|
||||
args_t args;
|
||||
var_opts opts;
|
||||
string_list paths;
|
||||
string_list input_files;
|
||||
string remote_source = "origin";
|
||||
string remote_source = "origin";
|
||||
install_method_e install_method = GLOBAL_LINK_LOCAL;
|
||||
};
|
||||
|
||||
|
|
@ -61,6 +62,7 @@ namespace gdpm::package {
|
|||
using id_list = std::vector<size_t>;
|
||||
using path = std::string;
|
||||
using path_list = std::vector<path>;
|
||||
using path_refs = std::vector<std::reference_wrapper<const path>>;
|
||||
|
||||
/*!
|
||||
@brief Install a Godot package from the Asset Library in the current project.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue