model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeRun   = "run"
	ModeBuild = "build"
	ModeWatch = "watch"
)
View Source
const (
	AdapterViteYarn  = "vite-yarn"
	AdapterViteNpm   = "vite-npm"
	AdapterVitePnpm  = "vite-pnpm"
	AdapterTauriYarn = "tauri-yarn"
	AdapterTauriNpm  = "tauri-npm"
	AdapterTauriPnpm = "tauri-pnpm"
	AdapterDotnet    = "dotnet"
	AdapterCustom    = "custom"
)
View Source
const (
	KeyDefault   = "$default"
	KeyAdapter   = "$adapter"
	KeyDirectory = "$dir"
	KeyFragment  = "$fragments"
	KeyCompound  = "$compounds"
	KeyPre       = "$pre"
	KeyPost      = "$post"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	CreateTask(c ProfileWrapper, extraArgs []string) tasks.Task
}

type BaseOptions

type BaseOptions struct {
	Base             string   `json:"base"`
	IncludeFragments []string `json:"includeFragments"`
}

type CompoundOptions

type CompoundOptions struct {
	Profiles         map[string]string `json:"profiles"`
	IncludeFragments []string          `json:"includeFragments"`
}

type CustomOptions

type CustomOptions struct {
	Command string `json:"command"`
}

type DotNetOptions

type DotNetOptions struct {
	Project string `json:"project"`
}

type FragmentOptions

type FragmentOptions map[string]interface{}

type HookOptions

type HookOptions struct {
	Command   string            `json:"command"`
	Fragments []string          `json:"fragments"`
	Profiles  map[string]string `json:"profiles"`
}

type ProfileOptions

type ProfileOptions struct {
	Args map[string]string `json:"args"`
	Env  []string          `json:"env"`
}

type ProfileWrapper

type ProfileWrapper interface {
	GetName() string
	GetMode() string
	GetAdapter() string
	GetDirectory() string
	GetOptions() map[string]interface{}
	GetViteOptions() ViteOptions
	GetDotNetOptions() DotNetOptions
	GetBaseOptions() BaseOptions
	GetProfileOptions() ProfileOptions
}

type ViteOptions

type ViteOptions struct {
	Mode string `json:"mode"`
}

Jump to

Keyboard shortcuts

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