cmd

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConvertCmd = &cobra.Command{
	Use:   "convert",
	Short: "convert",
	RunE: func(cmd *cobra.Command, _ []string) error {
		return runConvert(cmd.Context())
	},
}
View Source
var RootCmd = &cobra.Command{
	Use:   "cli",
	Short: "cli",
	RunE: func(cmd *cobra.Command, _ []string) error {
		return runRoot(cmd.Context())
	},
	Version: fmt.Sprintf(versionFmt, version, commit, date),
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Convert Convert
}

Config represents the configuration of the CLI.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

type Convert

type Convert struct {
	File   string
	Output string
}

Convert represents the configuration of the conversion command.

Jump to

Keyboard shortcuts

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