backendaction

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Action  string `arg:"" help:"Name of the action."`
	Amount  int    `help:"Amount of action to be called." short:"n" default:"10"`
	Content string `arg:"" help:"content of the action."`
}

Options is the meta information for the cli.

func (Options) Help

func (o Options) Help() string

Help returns the help message

func (Options) Run

func (o Options) Run(ctx context.Context, cfg config.Config) error

Run runs the command.

Jump to

Keyboard shortcuts

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