mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
@@ -9,7 +9,7 @@ bool ffPrintVersion(FFVersionOptions* options) {
|
||||
FFVersionResult* result = &ffVersionResult;
|
||||
|
||||
if (options->moduleArgs.outputFormat.length == 0) {
|
||||
ffPrintLogoAndKey(FF_VERSION_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
|
||||
ffPrintLogoAndKey(FF_MODULE_GET_DISPLAY_NAME(Version), 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
|
||||
printf("%s %s%s%s (%s)\n", result->projectName, result->version, result->versionTweak, result->debugMode ? "-debug" : "", result->architecture);
|
||||
} else {
|
||||
FFLibcResult libcResult;
|
||||
@@ -23,7 +23,7 @@ bool ffPrintVersion(FFVersionOptions* options) {
|
||||
}
|
||||
|
||||
const char* buildType = result->debugMode ? "debug" : "release";
|
||||
FF_PRINT_FORMAT_CHECKED(FF_VERSION_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, ((FFformatarg[]) {
|
||||
FF_PRINT_FORMAT_CHECKED(FF_MODULE_GET_DISPLAY_NAME(Version), 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, ((FFformatarg[]) {
|
||||
FF_ARG(result->projectName, "project-name"),
|
||||
FF_ARG(result->version, "version"),
|
||||
FF_ARG(result->versionTweak, "version-tweak"),
|
||||
@@ -48,7 +48,7 @@ void ffParseVersionJsonObject(FFVersionOptions* options, yyjson_val* module) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ffPrintError(FF_VERSION_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
|
||||
ffPrintError(FF_MODULE_GET_DISPLAY_NAME(Version), 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ void ffDestroyVersionOptions(FFVersionOptions* options) {
|
||||
}
|
||||
|
||||
FFModuleBaseInfo ffVersionModuleInfo = {
|
||||
.name = FF_VERSION_MODULE_NAME,
|
||||
.name = "Version",
|
||||
.description = "Print the Fastfetch version and build information",
|
||||
.displayName = {
|
||||
.en = "Version",
|
||||
|
||||
Reference in New Issue
Block a user