Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cfbs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If index is not specified, then maybe the default index should be printed or literally the string Default index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ticket comment told to only display it when specified. I tend to agree though, I think it would be good to print something like Index: default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either way is fine by me ;)

index = config.raw_data["index"]

if type(index) is str:
print("Index: %s" % index)
else:
print("Index: %s" % "inline index in cfbs.json")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print("Index: %s" % "inline index in cfbs.json")
print("Index: inline index in cfbs.json")


modules = config.get("build")
if not modules:
Expand Down