pkg

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProjectRoot

func GetProjectRoot() (string, error)

func InstallTools

func InstallTools() error

func PrintError

func PrintError(msg string)

func PrintSubtask

func PrintSubtask(msg string)

func PrintTask

func PrintTask(msg string)

Types

type BoolNode

type BoolNode interface {
	Eval(map[string]bool) bool
}

func ParseBoolExpr

func ParseBoolExpr(input string) (BoolNode, error)

type KarFile

type KarFile struct {
	// contains filtered or unexported fields
}

KarFile contains the metadata for a file entry

type KarFolder

type KarFolder struct {
	// contains filtered or unexported fields
}

KarFolder contains an index of the available sub-folders and files

type KarWriter

type KarWriter struct {
	// contains filtered or unexported fields
}

KarWriter can write . Kar archives

func NewKarWriter

func NewKarWriter(filename string) (*KarWriter, error)

NewKarWriter creates a new KarWriter instance and opens it for writing

func (*KarWriter) Close

func (w *KarWriter) Close() error

Close writes the central index and closes the archive

func (*KarWriter) CloseDirectory

func (w *KarWriter) CloseDirectory() error

CloseDirectory closes the directory that was last opened

func (*KarWriter) OpenDirectory

func (w *KarWriter) OpenDirectory(dirname string) error

OpenDirectory creates a new directory entry. Anything created until the next CloseDirectory() call will be created inside this directory.

func (*KarWriter) WriteFile

func (w *KarWriter) WriteFile(filename string, realpath string)

WriteFile creates a new file in the current archive directory

Directories

Path Synopsis
Package buildsys implements a minimal build system based on Starlark for the task specification and mvdan.cc/sh for the shell runtime.
Package buildsys implements a minimal build system based on Starlark for the task specification and mvdan.cc/sh for the shell runtime.
cmd
Package main implements a simple CLI for the buildsys package
Package main implements a simple CLI for the buildsys package

Jump to

Keyboard shortcuts

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