cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewK8surlCmd added in v0.1.0

func NewK8surlCmd() *cobra.Command

Types

type Command

type Command struct {
	Short   *string `yaml:"short"`
	Example *string `yaml:"example"`
	Tmpl    `mapstructure:",squash"`
	Kinds   []string `yaml:"kinds"`
}

type Config

type Config struct {
	KindAndTemplates KindAndTemplates   `mapstructure:",remain"`
	Commands         map[string]Command `yaml:"commands"`
}

type KindAndTemplates

type KindAndTemplates map[string]Tmpl

type Tmpl

type Tmpl struct {
	Urls      []string `yaml:"urls"`
	Templates []string `yaml:"templates"`
}

Jump to

Keyboard shortcuts

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