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

Add support for custom help templates. #586

Merged
merged 4 commits into from
Jun 12, 2017
Merged

Conversation

harshavardhana
Copy link
Contributor

No description provided.

@jszwedko
Copy link
Contributor

Hi @harshavardhana!

I really like this addition, but would you mind adding a test or two for it?

@harshavardhana
Copy link
Contributor Author

I really like this addition, but would you mind adding a test or two for it?

Sure i can do that @jszwedko

@harshavardhana
Copy link
Contributor Author

Added tests as requested. @jszwedko

context.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

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

Overall this looks good @harshavardhana ; apologies for the delay! Just left one comment about changes that appear to be unrelated to the rest of this PR.

@harshavardhana
Copy link
Contributor Author

Overall this looks good @harshavardhana ; apologies for the delay! Just left one comment about changes that appear to be unrelated to the rest of this PR.

Thanks for the review.. @jszwedko updated. Removed the change.

help.go Outdated
@@ -148,7 +179,11 @@ func ShowCommandHelp(ctx *Context, command string) error {

for _, c := range ctx.App.Commands {
if c.HasName(command) {
HelpPrinter(ctx.App.Writer, CommandHelpTemplate, c)
if c.CustomHelpTemplate != "" {
HelpPrinter(ctx.App.Writer, c.CustomHelpTemplate, c)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be calling HelpPrinterCustom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.. doesn't matter really.

@harshavardhana
Copy link
Contributor Author

Updated @jszwedko

@harshavardhana
Copy link
Contributor Author

@jszwedko anything pending here?

@harshavardhana
Copy link
Contributor Author

@jszwedko anything else is needed ?

@harshavardhana
Copy link
Contributor Author

@jszwedko can you tell me what is else needed to get this merged?

@jszwedko
Copy link
Contributor

👍 this looks good. Apologies for the severe delay in review; was on vacation for the past month and didn't keep up with my email as much as I thought I might.

@jszwedko jszwedko merged commit cf33a9b into urfave:master Jun 12, 2017
@harshavardhana harshavardhana deleted the extra-info branch June 12, 2017 00:25
@harshavardhana
Copy link
Contributor Author

No problem @jszwedko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants