parse

package
v0.0.0-...-7706583 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTasks

func ParseTasks() map[string]*Task

Types

type Config

type Config struct {
	Name      string            `toml:"name"`
	Variables map[string]string `toml:"variables"`
	Tasks     map[string]*Task  `toml:"task"`
}

func ParseConf

func ParseConf() *Config

type Task

type Task struct {
	Description string   `toml:"description"`
	Command     string   `toml:"command"`
	Commands    []string `toml:"commands"`
	Shell       string   `toml:"shell"`
	Environment []string `toml:"environment"`
	Depends     []string `toml:"depends"`
}

Jump to

Keyboard shortcuts

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