mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
Style: adds Cpp11BracedListStyle: Block
This commit is contained in:
+28
-28
@@ -163,7 +163,7 @@ static void printDisk(FFDiskOptions* options, const FFDisk* disk, uint32_t index
|
||||
FF_ARG(disk->filesystem, "filesystem"),
|
||||
FF_ARG(disk->name, "name"),
|
||||
FF_ARG(isReadOnly, "is-readonly"),
|
||||
{FF_ARG_TYPE_STRING, ffTimeToShortStr(disk->createTime), "create-time"},
|
||||
{ FF_ARG_TYPE_STRING, ffTimeToShortStr(disk->createTime), "create-time" },
|
||||
FF_ARG(bytesPercentageBar, "size-percentage-bar"),
|
||||
FF_ARG(filesPercentageBar, "files-percentage-bar"),
|
||||
FF_ARG(days, "days"),
|
||||
@@ -440,7 +440,7 @@ void ffInitDiskOptions(FFDiskOptions* options) {
|
||||
ffStrbufInit(&options->hideFS);
|
||||
options->showTypes = FF_DISK_VOLUME_TYPE_REGULAR_BIT | FF_DISK_VOLUME_TYPE_EXTERNAL_BIT | FF_DISK_VOLUME_TYPE_READONLY_BIT;
|
||||
options->calcType = FF_DISK_CALC_TYPE_FREE;
|
||||
options->percent = (FFPercentageModuleConfig) {50, 80, 0};
|
||||
options->percent = (FFPercentageModuleConfig) { 50, 80, 0 };
|
||||
}
|
||||
|
||||
void ffDestroyDiskOptions(FFDiskOptions* options) {
|
||||
@@ -460,31 +460,31 @@ FFModuleBaseInfo ffDiskModuleInfo = {
|
||||
.generateJsonResult = (void*) ffGenerateDiskJsonResult,
|
||||
.generateJsonConfig = (void*) ffGenerateDiskJsonConfig,
|
||||
.formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) {
|
||||
{"Size used", "size-used"},
|
||||
{"Size total", "size-total"},
|
||||
{"Size percentage num", "size-percentage"},
|
||||
{"Files used", "files-used"},
|
||||
{"Files total", "files-total"},
|
||||
{"Files percentage num", "files-percentage"},
|
||||
{"True if external volume", "is-external"},
|
||||
{"True if hidden volume", "is-hidden"},
|
||||
{"Filesystem", "filesystem"},
|
||||
{"Label / name", "name"},
|
||||
{"True if read-only", "is-readonly"},
|
||||
{"Create time in local timezone", "create-time"},
|
||||
{"Size percentage bar", "size-percentage-bar"},
|
||||
{"Files percentage bar", "files-percentage-bar"},
|
||||
{"Days after creation", "days"},
|
||||
{"Hours after creation", "hours"},
|
||||
{"Minutes after creation", "minutes"},
|
||||
{"Seconds after creation", "seconds"},
|
||||
{"Milliseconds after creation", "milliseconds"},
|
||||
{"Mount point / drive letter", "mountpoint"},
|
||||
{"Mount from (device path)", "mount-from"},
|
||||
{"Years integer after creation", "years"},
|
||||
{"Days of year after creation", "days-of-year"},
|
||||
{"Years fraction after creation", "years-fraction"},
|
||||
{"Size free", "size-free"},
|
||||
{"Size available", "size-available"},
|
||||
{ "Size used", "size-used" },
|
||||
{ "Size total", "size-total" },
|
||||
{ "Size percentage num", "size-percentage" },
|
||||
{ "Files used", "files-used" },
|
||||
{ "Files total", "files-total" },
|
||||
{ "Files percentage num", "files-percentage" },
|
||||
{ "True if external volume", "is-external" },
|
||||
{ "True if hidden volume", "is-hidden" },
|
||||
{ "Filesystem", "filesystem" },
|
||||
{ "Label / name", "name" },
|
||||
{ "True if read-only", "is-readonly" },
|
||||
{ "Create time in local timezone", "create-time" },
|
||||
{ "Size percentage bar", "size-percentage-bar" },
|
||||
{ "Files percentage bar", "files-percentage-bar" },
|
||||
{ "Days after creation", "days" },
|
||||
{ "Hours after creation", "hours" },
|
||||
{ "Minutes after creation", "minutes" },
|
||||
{ "Seconds after creation", "seconds" },
|
||||
{ "Milliseconds after creation", "milliseconds" },
|
||||
{ "Mount point / drive letter", "mountpoint" },
|
||||
{ "Mount from (device path)", "mount-from" },
|
||||
{ "Years integer after creation", "years" },
|
||||
{ "Days of year after creation", "days-of-year" },
|
||||
{ "Years fraction after creation", "years-fraction" },
|
||||
{ "Size free", "size-free" },
|
||||
{ "Size available", "size-available" },
|
||||
}))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user