canonical / pebble

Pebble is a lightweight Linux service manager with layered configuration and an HTTP API.
https://canonical-pebble.readthedocs-hosted.com/
GNU General Public License v3.0
145 stars 54 forks source link

fix(help): DefaultDir to personality, allow overriding header and footer #397

Closed thp-canonical closed 6 months ago

thp-canonical commented 6 months ago

Just like ProgramName and DisplayName can already be customized via public vars in the cmd package, DefaultDir also looks like a perfect candidate to customize this way (and assembling the help text can then be done using {{.DefaultDir}}).

In addition, cli.HelpHeader and cli.HelpFooter are made public, so that they can be extended and overridden.