env

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Workspace1  int = 1
	Workspace2      = 2
	Workspace3      = 3
	Workspace4      = 4
	Workspace5      = 5
	Workspace6      = 6
	Workspace7      = 7
	Workspace8      = 8
	Workspace9      = 9
	Workspace10     = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupConfig

type BackupConfig struct {
	GpgKeyring bool
	Secrets    map[string]string
	Data       map[string]string
}

type Context

type Context interface {
	FromHome(string) string
	FromEnvDir(string) string
}

type EnvironmentConfig

type EnvironmentConfig struct {
	Workspaces        []Workspace
	Actions           []LauncherAction
	Backup            BackupConfig
	Init              []InitAction
	CustomSetupAction func(Context) action.Object
}

type InitAction

type InitAction struct {
	Args []string `json:"args"`
	Cwd  string   `json:"cwd"`
}

type LauncherAction

type LauncherAction struct {
	Id    string         `json:"id"`
	Tasks []LauncherTask `json:"tasks"`
}

type LauncherTask

type LauncherTask struct {
	Id           string   `json:"string"`
	Args         []string `json:"args"`
	Cwd          string   `json:"cwd"`
	RunAsService bool     `json:"run_as_service"`
	WorkspaceID  int      `json:"workspace_id"`
}

type LazyValue

type LazyValue[T any] (func() T)

func (*LazyValue[T]) MarshalJSON

func (l *LazyValue[T]) MarshalJSON() ([]byte, error)

func (*LazyValue[T]) Resolve

func (l *LazyValue[T]) Resolve() T

type VimAction

type VimAction struct {
	Id   string   `json:"id"`
	Name string   `json:"name"`
	Args []string `json:"args"`
	Cwd  string   `json:"cwd"`
}

type VimConfig

type VimConfig struct {
	GoEfm     map[string]interface{}       `json:"go_efm,omitempty"`
	CmakeEfm  map[string]interface{}       `json:"cmake_efm,omitempty"`
	Eslint    *bool                        `json:"eslint,omitempty"`
	Databases LazyValue[map[string]string] `json:"databases,omitempty"`
	Actions   []VimAction                  `json:"actions,omitempty"`
}

type Workspace

type Workspace struct {
	Name      string    `json:"name"`
	Path      string    `json:"path"`
	VimConfig VimConfig `json:"vim"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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