commands

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package commands contains jobctl's cobra commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func ExecuteArgs

func ExecuteArgs(args []string) error

Types

type Command

type Command interface {
	Cmd() *cobra.Command
	Execute(ctx context.Context, cfg *client.Config, cmd *cobra.Command, args []string) error
}

type CompletionCmd

type CompletionCmd struct {
	*cobra.Command
}

func (*CompletionCmd) Cmd

func (c *CompletionCmd) Cmd() *cobra.Command

func (*CompletionCmd) Execute

func (c *CompletionCmd) Execute(ctx context.Context, cfg *client.Config, cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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