clir

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build func(context.Context, string) error

type Clean added in v0.1.1

type Clean func(string) error

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(
	ctx context.Context,
	name, description string,
	version Version,
) *Cli

func (Cli) Apps

func (c Cli) Apps(
	find target.Find[target.Portal_],
)

func (Cli) Build

func (c Cli) Build(
	build Build,
	clean Clean,
)

func (Cli) Create

func (c Cli) Create(
	templates Templates,
	create create.Run,
)

func (Cli) Dev

func (c Cli) Dev(handle target.Request)

func (Cli) Install

func (c Cli) Install(handle Install)

func (Cli) List

func (c Cli) List(handle List)

func (Cli) Open

func (c Cli) Open(handle target.Request)

func (Cli) Portals

func (c Cli) Portals(
	find target.Find[target.Portal_],
)

func (Cli) Run

func (c Cli) Run() error

func (Cli) Serve

func (c Cli) Serve(handle target.Request)

func (Cli) Start added in v0.1.1

func (c Cli) Start(handle target.Request)

func (Cli) Uninstall

func (c Cli) Uninstall(handle Uninstall)

func (Cli) Version

func (c Cli) Version() (cmd *clir.Command)

type Install

type Install func(string) error

type List

type List func() []target.App_

type Templates

type Templates func() error

type Uninstall

type Uninstall func(string) error

type Version

type Version func() string

Jump to

Keyboard shortcuts

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