mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Modules: remove all parseCommandOptions and related stuff
This commit is contained in:
@@ -43,16 +43,6 @@ void ffPrintTerminalTheme(FFTerminalThemeOptions* options)
|
||||
}
|
||||
}
|
||||
|
||||
bool ffParseTerminalThemeCommandOptions(FFTerminalThemeOptions* options, const char* key, const char* value)
|
||||
{
|
||||
const char* subKey = ffOptionTestPrefix(key, FF_TERMINALTHEME_MODULE_NAME);
|
||||
if (!subKey) return false;
|
||||
if (ffOptionParseModuleArgs(key, subKey, value, &options->moduleArgs))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ffParseTerminalThemeJsonObject(FFTerminalThemeOptions* options, yyjson_val* module)
|
||||
{
|
||||
yyjson_val *key, *val;
|
||||
@@ -102,7 +92,6 @@ void ffGenerateTerminalThemeJsonResult(FF_MAYBE_UNUSED FFTerminalOptions* option
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_TERMINALTHEME_MODULE_NAME,
|
||||
.description = "Print current terminal theme (foreground and background colors)",
|
||||
.parseCommandOptions = (void*) ffParseTerminalThemeCommandOptions,
|
||||
.parseJsonObject = (void*) ffParseTerminalThemeJsonObject,
|
||||
.printModule = (void*) ffPrintTerminalTheme,
|
||||
.generateJsonResult = (void*) ffGenerateTerminalThemeJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user