Fastfetch: adds interactive --gen-config mode

removes `--gen-config-*` flags (merged into `--gen-config`)
This commit is contained in:
Carter Li
2026-08-04 10:41:26 +08:00
parent 2af56232a4
commit 6d795a3572
6 changed files with 1154 additions and 36 deletions
+1
View File
@@ -19,4 +19,5 @@ typedef struct FFdata {
FFstrbuf genConfigPath; // Path to generate configuration file
FFDataResultDocType docType; // Type of result document
bool configLoaded;
bool genConfigInteractive; // `--gen-config` entered the interactive CUI
} FFdata;
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include "common/ffdata.h"
// Runs the interactive config generation CUI.
//
// On success (the user saved the config), it sets `data->structure` to the user chosen
// module structure and `instance.config.logo.type` to the user chosen logo type, creates
// the result document and returns true. The caller is expected to call `writeConfigFile`.
// Returns false if the user quits without saving.
bool ffGenConfigInteractive(FFdata* data);
File diff suppressed because it is too large Load Diff