Name returns the name of the (sub)command for which the hook was invoked. It's used for backward-compatibility with old templates.
()
| 58 | // |
| 59 | // It's used for backward-compatibility with old templates. |
| 60 | func (c commandInfo) Name() string { |
| 61 | return c.command() |
| 62 | } |
| 63 | |
| 64 | // command returns the name of the (sub)command for which the hook was invoked. |
| 65 | func (c commandInfo) command() string { |