cliapp

package
v0.0.0-...-b291640 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LifecycleCmd

func LifecycleCmd(fn LifecycleAction) cli.ActionFunc

func ProtectFlags

func ProtectFlags(flags []cli.Flag) []cli.Flag

Types

type CloneableGeneric

type CloneableGeneric interface {
	cli.Generic
	Clone() any
}

type Lifecycle

type Lifecycle interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Stopped() bool
}

type LifecycleAction

type LifecycleAction func(ctx *cli.Context, close context.CancelCauseFunc) (Lifecycle, error)

Jump to

Keyboard shortcuts

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