app

package
v0.0.0-...-4281160 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Exec             ExecCmd             `cmd:"" help:"import data in directory by running fetch, transform and publish" default:"withargs"`
	Publish          PublishCmd          `cmd:"" help:"load data from stdin into directory"`
	GetPlugin        GetPluginCmd        `cmd:"" help:"download plugin"`
	SetDefaultPlugin SetDefaultPluginCmd `cmd:"" help:"sets a plugin as default"`
	ListPlugins      ListPluginsCmd      `cmd:"" help:"list available plugins"`
	Version          VersionCmd          `cmd:"" help:"version information"`

	Config    kong.ConfigFlag `short:"c" help:"Path to the config file. Any argument provided to the CLI will take precedence."`
	Verbosity int             `short:"v" type:"counter" help:"Use to increase output verbosity."`
}

type ExecCmd

type ExecCmd struct {
	PublishCmd
	CommandArgs  []string `name:"command" passthrough:"" arg:"" help:"available commands are: ${plugins}"`
	Print        bool     `name:"print" short:"p" help:"print output to stdout"`
	PluginFolder string   `hidden:""`
	// contains filtered or unexported fields
}

func (*ExecCmd) LaunchPlugin

func (e *ExecCmd) LaunchPlugin(c *cc.CommonCtx) error

func (*ExecCmd) Run

func (e *ExecCmd) Run(c *cc.CommonCtx) error

type GetPluginCmd

type GetPluginCmd struct{}

func (*GetPluginCmd) Run

func (getPlugin *GetPluginCmd) Run(c *cc.CommonCtx) error

type ListPluginsCmd

type ListPluginsCmd struct{}

func (*ListPluginsCmd) Run

func (listPlugins *ListPluginsCmd) Run(c *cc.CommonCtx) error

type PublishCmd

type PublishCmd struct {
	clients.Config
	V2 bool `name:"v2" help:"use directory v2 api"`
}

func (*PublishCmd) Run

func (l *PublishCmd) Run(commonCtx *cc.CommonCtx) error

type SetDefaultPluginCmd

type SetDefaultPluginCmd struct{}

func (*SetDefaultPluginCmd) Run

func (defaultPlugin *SetDefaultPluginCmd) Run(c *cc.CommonCtx) error

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

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