mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
Global: :%s/ffGenerate\w+Json/$0Result/g
This commit is contained in:
@@ -32,7 +32,7 @@ void ffPrintTheme(FFThemeOptions* options)
|
||||
|
||||
void ffInitThemeOptions(FFThemeOptions* options)
|
||||
{
|
||||
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_THEME_MODULE_NAME, ffParseThemeCommandOptions, ffParseThemeJsonObject, ffPrintTheme, ffGenerateThemeJson, ffPrintThemeHelpFormat);
|
||||
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_THEME_MODULE_NAME, ffParseThemeCommandOptions, ffParseThemeJsonObject, ffPrintTheme, ffGenerateThemeJsonResult, ffPrintThemeHelpFormat);
|
||||
ffOptionInitModuleArg(&options->moduleArgs);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ void ffParseThemeJsonObject(FFThemeOptions* options, yyjson_val* module)
|
||||
}
|
||||
}
|
||||
|
||||
void ffGenerateThemeJson(FF_MAYBE_UNUSED FFThemeOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
|
||||
void ffGenerateThemeJsonResult(FF_MAYBE_UNUSED FFThemeOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
|
||||
{
|
||||
FF_STRBUF_AUTO_DESTROY theme = ffStrbufCreate();
|
||||
const char* error = ffDetectTheme(&theme);
|
||||
|
||||
@@ -9,5 +9,5 @@ void ffInitThemeOptions(FFThemeOptions* options);
|
||||
bool ffParseThemeCommandOptions(FFThemeOptions* options, const char* key, const char* value);
|
||||
void ffDestroyThemeOptions(FFThemeOptions* options);
|
||||
void ffParseThemeJsonObject(FFThemeOptions* options, yyjson_val* module);
|
||||
void ffGenerateThemeJson(FFThemeOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
|
||||
void ffGenerateThemeJsonResult(FFThemeOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
|
||||
void ffPrintThemeHelpFormat(void);
|
||||
|
||||
Reference in New Issue
Block a user