Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostic output: list cowpath and prefix, etc #52

Open
apjanke opened this issue Aug 20, 2024 · 0 comments
Open

Diagnostic output: list cowpath and prefix, etc #52

apjanke opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels
enhancement Make stuff better!
Milestone

Comments

@apjanke
Copy link
Collaborator

apjanke commented Aug 20, 2024

Could be useful to have some diagnostic or debugging output, like in a cowsay -D invocation, to help diagnose issues like #49, where we're not sure what the effective cowpath and prefix discovery is.

In the output, I'd want something like:

  • The effective cowpath, listing all the directories on it.
    • Maybe note which ones were baked in based on the prefix, and which came from the $COWPATH env var, and which came from cowpath.d entries (and where those cowpath.d entries came from).
    • And maybe whether $COWSAY_ONLY_COWPATH is in effect.
  • The $prefix that cowsay discovered.
    • And whether cowsay thinks it's running in deployed or in-repo mode.
    • The effective $etc dir.
  • The cowsay version, so the user doesn't have to run cowsay --version separately when producing diagnostic output to copy-paste into a bug report.

Maybe an expanded version of cowsay -l that indicates where each cow comes from and notes shadowed cows, to help diagnose "why isn't my customized cow working?" stuff.

@apjanke apjanke self-assigned this Aug 20, 2024
@apjanke apjanke added the enhancement Make stuff better! label Aug 20, 2024
@apjanke apjanke added this to Cowsay Aug 20, 2024
@apjanke apjanke moved this to Todo in Cowsay Aug 21, 2024
@apjanke apjanke added this to the 3.9.0 milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make stuff better!
Projects
Status: Todo
Development

No branches or pull requests

1 participant