The summary is only printed when we use the summary verb which doesn't
take command line arguments, so both of these are self evident and will
always have the same value.
text = ""
for config in presets:
- text += f"{summary(args, config)}\n"
+ text += f"{summary(config)}\n"
page(text, args.pager)
return
return format_bytes(num_bytes) if num_bytes is not None else "none"
-def summary(args: MkosiArgs, config: MkosiConfig) -> str:
+def summary(config: MkosiConfig) -> str:
def bold(s: Any) -> str:
return f"{Style.bold}{s}{Style.reset}"
summary = f"""\
{bold(f"PRESET: {config.preset or 'default'}")}
- {bold("COMMANDS")}:
- Verb: {bold(args.verb)}
- Cmdline: {bold(" ".join(args.cmdline))}
-
{bold("CONFIG")}:
Include: {line_join_list(config.include)}