mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-01 18:42:56 +01:00
Modules: adds * to format args which are available in key format
This commit is contained in:
@@ -20,7 +20,7 @@ static void formatKey(const FFNetIOOptions* options, FFNetIOResult* inf, uint32_
|
||||
ffStrbufClear(key);
|
||||
FF_PARSE_FORMAT_STRING_CHECKED(key, &options->moduleArgs.key, ((FFformatarg[]) {
|
||||
FF_ARG(index, "index"),
|
||||
FF_ARG(inf->name, "name"),
|
||||
FF_ARG(inf->name, "ifname"),
|
||||
FF_ARG(options->moduleArgs.keyIcon, "icon"),
|
||||
FF_ARG(FF_MODULE_GET_DISPLAY_NAME(NetIO), "module-name"),
|
||||
}));
|
||||
@@ -234,7 +234,7 @@ FFModuleBaseInfo ffNetIOModuleInfo = {
|
||||
.formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) {
|
||||
{ "Size of data received [per second] (formatted)", "rx-size" },
|
||||
{ "Size of data sent [per second] (formatted)", "tx-size" },
|
||||
{ "Interface name", "ifname" },
|
||||
{ "Interface name *", "ifname" },
|
||||
{ "Is default route", "is-default-route" },
|
||||
{ "Size of data received [per second] (in bytes)", "rx-bytes" },
|
||||
{ "Size of data sent [per second] (in bytes)", "tx-bytes" },
|
||||
|
||||
Reference in New Issue
Block a user