Skip to content

Conversation

MichaIng
Copy link
Contributor

@MichaIng MichaIng commented Jul 29, 2025

While launcher allows to pass any container/app name as CLI argument, discourse-doctor does not, but support two hardcoded names only.

This commit adds support for custom names taken from first CLI argument. It is done in a non-breaking change. If the argument is empty, or the related YAML file does not exist, it continues to check for the two hardcoded names like before.


E.g. we use discourse.yml, and I was intuitively trying discourse-doctor discourse, then discourse-doctor discourse.yml and discourse-doctor container/discourse.yml, before checking the code, and realizing that it really checks for two hardcoded names only. Maybe others who use custom container names might expect the same, given that launcher rebuild/enter/... all take the container name from CLI arg. But of course I can add some help output for documentation purpose if wanted. Also I was thinking about looping through all actually existing container/*.yml files, offering a read -p selection, or taking the only one automatically (if there is one only). But keeping it simple for now, not adding any functional change as long as the argument does not really match an existing YAML file.

While `launcher` allows to pass any container/app name as CLI argument, `discourse-doctor` does not, but support two hardcoded names only.

This commit adds support for custom names taken from first CLI argument. It is done in a non-breaking change. If the argument is empty, or the related YAML file does not exist, it continues to check for the two hardcoded names like before.

Signed-off-by: MichaIng <[email protected]>
@andrewschleifer andrewschleifer merged commit c73028a into discourse:main Aug 22, 2025
@MichaIng MichaIng deleted the doctor-custom-app-name branch August 22, 2025 22:45
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.

2 participants