From bc8130198c7d5ef8f3e67499030d2f392ed436f1 Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Fri, 30 May 2025 15:27:29 +0200 Subject: [PATCH] `cfbs status` now displays the used (non-default) index Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- cfbs/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cfbs/commands.py b/cfbs/commands.py index b9367a1f..0e708e93 100644 --- a/cfbs/commands.py +++ b/cfbs/commands.py @@ -301,6 +301,13 @@ def status_command() -> int: print("Name: %s" % config["name"]) print("Description: %s" % config["description"]) print("File: %s" % cfbs_filename()) + if "index" in config: + index = config.raw_data["index"] + + if type(index) is str: + print("Index: %s" % index) + else: + print("Index: %s" % "inline index in cfbs.json") modules = config.get("build") if not modules: