Skip to content

Conversation

@jakub-nt
Copy link
Contributor

No description provided.

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
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 ;)

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")

@olehermanse olehermanse merged commit 65991a4 into cfengine:master Jun 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants