Command: major code refactoring

ditto; and multi-command support was removed in favor of JSON config
support
This commit is contained in:
李通洲
2023-03-07 19:27:49 +08:00
parent 4e3e469ba8
commit cbaeed7e8e
11 changed files with 117 additions and 110 deletions
+1 -2
View File
@@ -108,7 +108,7 @@ void ffPrintOS(FFinstance* instance, FFOSOptions* options)
if(options->moduleArgs.outputFormat.length == 0)
{
FFstrbuf result;
FF_STRBUF_AUTO_DESTROY result;
ffStrbufInit(&result);
if(ffStrbufIgnCaseCompS(&os->id, "nixos") == 0)
@@ -118,7 +118,6 @@ void ffPrintOS(FFinstance* instance, FFOSOptions* options)
ffPrintLogoAndKey(instance, FF_OS_MODULE_NAME, 0, &options->moduleArgs.key);
ffStrbufPutTo(&result, stdout);
ffStrbufDestroy(&result);
}
else
{