command

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2026 YLD Limited SPDX-License-Identifier: Apache-2.0 Package command implements the cinzel CLI using urfave/cli. It registers provider subcommands (parse/unparse) and translates CLI flags into provider option structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	Writer io.Writer
	Cmd    *cli.Command
}

Cli holds the CLI application state including the output writer and root command.

func New

func New(writer io.Writer, version string) *Cli

New creates a Cli configured with the given writer and version string.

func (*Cli) Execute

func (cmd *Cli) Execute(osArgs []string, providers []provider.Provider) error

Execute registers the given providers and runs the CLI with the supplied arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL