Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
Taskfile string `arg:"" help:"Path to the taskfile to process."`
Output string `help:"Path to the output file." long:"output" required:"true" short:"o"`
Config string `help:"Path to a config file (YAML or JSON)." long:"config" short:"c"`
GroupByNamespace bool `help:"Group tasks in the same namespace together in the output." long:"group-by-namespace"`
//nolint:revive // Intentially long name for clarity in the CLI help.
Highlight string `` /* 134-byte string literal not displayed */
//nolint:revive // Intentially long name for clarity in the CLI help.
RenderImage string `help:"Render the graph as an image using graphviz dot. Specify the file type (e.g. png, svg)." long:"render-image"`
//nolint:revive // Intentially long name for clarity in the CLI help.
ExportConfig string `help:"Export the effective configuration to a file (YAML or JSON based on file extension)." long:"export-config"`
Verbose bool `help:"Enable verbose logging."`
}
func (*CLI) CreateLogger ¶
CreateLogger builds a slog logger configured from the CLI flags.
func (*CLI) ExportConfigToFile ¶
ExportConfigToFile writes the effective configuration to the given file path. The format is determined by the file extension (.yaml, .yml, or .json).
Click to show internal directories.
Click to hide internal directories.