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
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include "types.hpp"
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
namespace gdpm::plugin{
|
||||
struct info{
|
||||
|
|
@ -8,9 +9,11 @@ namespace gdpm::plugin{
|
|||
string description;
|
||||
string version;
|
||||
};
|
||||
extern int init(int argc, char **argv);
|
||||
extern int set_name(const char *name);
|
||||
extern int set_description(const char *description);
|
||||
extern int set_version(const char *version);
|
||||
extern int finalize();
|
||||
extern error initialize(int argc, char **argv);
|
||||
extern error set_name(const char *name);
|
||||
extern error set_description(const char *description);
|
||||
extern error set_version(const char *version);
|
||||
extern error finalize();
|
||||
|
||||
error load(std::filesystem::path path);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue