mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Modules: export module info
This commit is contained in:
@@ -120,7 +120,7 @@ void ffGenerateCommandJsonResult(FF_MAYBE_UNUSED FFCommandOptions* options, yyjs
|
||||
yyjson_mut_obj_add_strbuf(doc, module, "result", &result);
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffCommandModuleInfo = {
|
||||
.name = FF_COMMAND_MODULE_NAME,
|
||||
.description = "Run custom shell scripts",
|
||||
.initOptions = (void*) ffInitCommandOptions,
|
||||
@@ -136,7 +136,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitCommandOptions(FFCommandOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffCommandModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
|
||||
ffStrbufInitStatic(&options->shell,
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintCommand(FFCommandOptions* options);
|
||||
void ffInitCommandOptions(FFCommandOptions* options);
|
||||
void ffDestroyCommandOptions(FFCommandOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffCommandModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user