Documentation
¶
Overview ¶
Package heraldurfave converts a urfave/cli/v3 Command into a heraldhelp.Command for styled help rendering with herald.
Quick start:
app := &cli.Command{
Name: "myapp",
Action: func(ctx context.Context, cmd *cli.Command) error {
ty := herald.New()
return heraldhelp.RenderTo(cmd.Writer, ty, heraldurfave.FromUrfave(cmd))
},
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUrfave ¶
func FromUrfave(cmd *cli.Command) heraldhelp.Command
FromUrfave converts a urfave/cli/v3 Command into a heraldhelp.Command. It extracts flags (with categories and env vars), subcommands (with categories), and other metadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.