Command: major code refactoring

ditto; and multi-command support was removed in favor of JSON config
support
This commit is contained in:
李通洲 committed 2023-06-10 09:15:15 +08:00
1 parent 4e3e469ba8
commit cbaeed7e8e
11 files changed
+117 -110

No files matched your search

+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
{