qubesome

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkloadConfigNotFound = errors.New("workload config file not found")
	ErrProfileDirNotExist     = errors.New("profile dir does not exist")
)

Functions

func Run

func Run(opts ...command.Option[Options]) error

func WithConfig

func WithConfig(cfg *types.Config) command.Option[Options]

func WithExtraArgs

func WithExtraArgs(args []string) command.Option[Options]

func WithProfile

func WithProfile(profile string) command.Option[Options]

func WithWorkload

func WithWorkload(workload string) command.Option[Options]

func XdgRun

func XdgRun(opts ...command.Option[Options]) error

Types

type Options

type Options struct {
	Workload  string
	Config    *types.Config
	Profile   string
	ExtraArgs []string
}

func (*Options) Validate

func (o *Options) Validate() error

type Qubesome

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

func New

func New() *Qubesome

func (*Qubesome) HandleMime

func (q *Qubesome) HandleMime(in *WorkloadInfo, args []string) error

type WorkloadInfo

type WorkloadInfo struct {
	Name    string
	Profile string
	Path    string

	// Args provides additional args to the default command on the target workload
	Args   []string
	Config *types.Config
}

func (*WorkloadInfo) Validate

func (w *WorkloadInfo) Validate() error

Jump to

Keyboard shortcuts

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