clir

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 7 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 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.App],
)

func (Cli) Build

func (c Cli) Build(handle Build)

func (Cli) Create

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

func (Cli) Dev

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

func (Cli) Dispatch

func (c Cli) Dispatch(handle target.Dispatch)

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(handler target.Dispatch)

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 Serve)

func (Cli) Tray

func (c Cli) Tray(handle target.Tray)

func (Cli) Uninstall

func (c Cli) Uninstall(handle Uninstall)

func (Cli) Version

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

type Create

type Create func(
	ctx context.Context,
	dir string,
	targets map[string]string,
) (err error)

type Install

type Install func(string) error

type List

type List func() []target.App

type Serve

type Serve func(
	ctx context.Context,
) error

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