mod

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	Name string `arg:"" help:"Name of the module to create"`
}

func (*Create) Help added in v0.4.0

func (c *Create) Help() string

func (*Create) Run

func (c *Create) Run(ctx context.Context, modHandler client.ModHandler, logger log.FLogger, parent *Mod) error

type Delete

type Delete struct {
	Name string `arg:"" help:"Name of the module to delete"`
}

func (*Delete) Help added in v0.4.0

func (c *Delete) Help() string

func (*Delete) Run

func (d *Delete) Run(ctx context.Context, modHandler client.ModHandler, logger log.FLogger, parent *Mod) error

type Get

type Get struct {
	Name  string `arg:"" help:"Name of the module"`
	Count bool   `name:"count" short:"c" default:"false" help:"Return number of results"`
}

func (*Get) Help added in v0.4.0

func (c *Get) Help() string

func (*Get) Run

func (g *Get) Run(ctx context.Context, modHandler client.ModHandler, logger log.FLogger, parent *Mod) error

type List

type List struct {
	Count bool `name:"count" short:"c" default:"false" help:"Return number of results"`
}

func (*List) Help added in v0.4.0

func (c *List) Help() string

func (*List) Run

func (l *List) Run(ctx context.Context, modHandler client.ModHandler, logger log.FLogger, parent *Mod) error

type Mod

type Mod struct {
	Get    Get    `cmd:"" aliases:"g" help:"List functions and information of a module"`
	Delete Delete `cmd:"" aliases:"d,rm" help:"Delete a module"`
	Update Update `cmd:"" aliases:"u,up" help:"Update the name of a module"`
	Create Create `cmd:"" aliases:"c" help:"Create a new module"`
	List   List   `cmd:"" aliases:"l,ls" help:"List all modules"`

	Host string `short:"H" help:"API host/port of the platform (no protocol)"`
}

type Update

type Update struct {
	Name    string `arg:"" help:"Name of the module to update"`
	NewName string `arg:"" help:"New name of the module"`
}

func (*Update) Help added in v0.4.0

func (c *Update) Help() string

func (*Update) Run

func (u *Update) Run(ctx context.Context, modHandler client.ModHandler, logger log.FLogger, parent *Mod) error

Jump to

Keyboard shortcuts

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