curl

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	*cmd.Context
	Fs afero.Fs
	// contains filtered or unexported fields
}

Cmd wraps the smctl curl command

func NewCurlCmd

func NewCurlCmd(context *cmd.Context, fs afero.Fs) *Cmd

NewCurlCmd returns new curl command with context

func (*Cmd) HideUsage

func (c *Cmd) HideUsage() bool

HideUsage hide command's usage

func (*Cmd) Prepare

func (c *Cmd) Prepare(prepare cmd.PrepareFunc) *cobra.Command

Prepare returns the cobra command

func (*Cmd) Run

func (c *Cmd) Run() error

Run runs the command's logic

func (*Cmd) SetOutputFormat

func (c *Cmd) SetOutputFormat(format output.Format)

SetOutputFormat set output format

func (*Cmd) Validate

func (c *Cmd) Validate(args []string) error

Validate validates command's arguments

Jump to

Keyboard shortcuts

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