config

package
v0.0.0-...-ae6850a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GoBuild = "go build"
View Source
const RustBuild = "cargo build --release"
View Source
const RustBuildWasm = "cargo build --release --target wasm32-unknown-unknown"
View Source
const RustDev = "cargo build"
View Source
const RustDevWasm = "cargo build --target wasm32-unknown-unknown"

Variables

This section is empty.

Functions

func Glue

func Glue(member string, method string)

Glue Public method to bind the command executor to the cli

Types

type Cache

type Cache struct {
	Workspaces []CacheWorkspace
}

func ReadCache

func ReadCache() *Cache

func (*Cache) AddWorkspace

func (c *Cache) AddWorkspace(workspace string, members []CacheMember)

func (*Cache) AddWorkspaceMember

func (c *Cache) AddWorkspaceMember(workspace string, member CacheMember)

func (*Cache) GetWorkspace

func (c *Cache) GetWorkspace(workspace string) *CacheWorkspace

func (*Cache) GetWorkspaceMember

func (c *Cache) GetWorkspaceMember(workspace string, member string) *CacheMember

func (*Cache) IncludesWorkspace

func (c *Cache) IncludesWorkspace(workspace string) bool

func (*Cache) IncludesWorkspaceMember

func (c *Cache) IncludesWorkspaceMember(workspace string, member string) bool

func (*Cache) RemoveWorkspace

func (c *Cache) RemoveWorkspace(workspace string)

func (*Cache) RemoveWorkspaceMember

func (c *Cache) RemoveWorkspaceMember(workspace string, member string)

func (*Cache) SetHash

func (c *Cache) SetHash(workspace string, member string, hash string)

func (*Cache) WriteCache

func (c *Cache) WriteCache()

type CacheMember

type CacheMember struct {
	Name string
	Hash string
}

type CacheWorkspace

type CacheWorkspace struct {
	Name    string
	Members []CacheMember
}

type Members

type Members struct {
	Type       string
	Target     string
	EntryPoint string
	Cache      bool
	OutDir     string
	Options    Options
}

type Options

type Options struct {
	Build string
	Dev   string
}

type Schef

type Schef struct {
	Member map[string]Members
}

func GetSchef

func GetSchef() *Schef

GetSchef returns the workspace (Schef) in which the program got invoked

func (*Schef) GenerateWorkspace

func (s *Schef) GenerateWorkspace() *Workspace

GenerateWorkspace generates the Workspace struct and generates all commands required

type Workspace

type Workspace struct {
	Members []WorkspaceMember
	Cwd     string
	Name    string
}

type WorkspaceMember

type WorkspaceMember struct {
	Name     string
	BuildCmd string
	DevCmd   string
	Cache    bool
}

Jump to

Keyboard shortcuts

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