olpfile

package
v0.0.0-...-a199d56 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(question string, defaultText string) string

func Exists

func Exists(name string) bool

func FileParse

func FileParse(filename string, src string, packt string) string

Types

type CompiledFile

type CompiledFile struct {
	FileName string
}

type FileWatcher

type FileWatcher struct {
	Folder string `json:"folder"`
	Output string `json:"output"`
}

Add File Watcher

type InstallTask

type InstallTask map[string]string

type Job

type Job struct {
	Name    string `json:"name"`
	Command string `json:"command"`
}

type OlpParsed

type OlpParsed struct {
	Name      string        `json:"package"`
	Publisher Publisher     `json:"publisher"`
	Sources   string        `json:"sources"`
	Main      string        `json:"main"`
	Requires  []Require     `json:"requires"`
	Compiled  string        `json:"compiled"`
	Install   []InstallTask `json:"install"`
	WatchList FileWatcher   `json:"watch"`
	Jobs      []Job         `json:"jobs"`
	Type      string        `json:"type"`
}

type Olpfile

type Olpfile struct {
	Error  string
	Parsed OlpParsed
	// contains filtered or unexported fields
}

func Create

func Create(filename string) *Olpfile

func New

func New(filename string, libPath string) *Olpfile

func NewProject

func NewProject(url string, name string, fileName string, libPath string) *Olpfile

func (*Olpfile) Clone

func (olp *Olpfile) Clone(name string, url string)

func (*Olpfile) Install

func (olp *Olpfile) Install() bool

func (*Olpfile) JobRun

func (olp *Olpfile) JobRun(jobname string)

func (*Olpfile) Parse

func (olp *Olpfile) Parse() *Olpfile

func (*Olpfile) WriteOlpFile

func (olp *Olpfile) WriteOlpFile(parser OlpParsed) bool

type Publisher

type Publisher struct {
	Name   string `json:"name"`
	Email  string `json:"email"`
	Github string `json:"github"`
}

type Require

type Require struct {
	Name     string `json:"name"`
	Src      string `json:"src"`
	FileName string `json:"filename"`
}

Jump to

Keyboard shortcuts

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