internal

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedType = errors.New("Unsupported type")

Functions

func ExitCode added in v0.0.9

func ExitCode(err error) int

func Get

func Get(workDir, uri string, update bool, stdout, stderr io.Writer) error

func HandleError added in v0.0.9

func HandleError(out io.Writer, err error) int

func Import

func Import(workDir, uri, alias string, stdout, stderr io.Writer) error

func Init

func Init(rootDir, projectName string, stdout, stderr io.Writer) error

func PrintError added in v0.0.9

func PrintError(out io.Writer, err error)

func Render

func Render(oyafilePath, templatePath string, excludedPaths []string, outputPath string,
	autoScope bool, scopePath string, overrides map[string]interface{}, delimitersStr string,
	stdout, stderr io.Writer) error

func Run

func Run(workDir, taskName string, taskArgs Args, recurse, changeset bool, stdout, stderr io.Writer) error

func SecretsEdit

func SecretsEdit(filename string, stdout, stderr io.Writer) error

func SecretsEncrypt

func SecretsEncrypt(path string, stdout, stderr io.Writer) error

func SecretsInit added in v0.0.17

func SecretsInit(typ, email, name, desc, format string, stdout, stderr io.Writer) error

func SecretsView

func SecretsView(path string, stdout, stderr io.Writer) error

func Tasks

func Tasks(workDir string, recurse, changeset bool, stdout, stderr io.Writer) error

Types

type Args

type Args struct {
	All        []string
	Positional []string
	Flags      map[string]string
}

type ErrNoScope

type ErrNoScope struct {
	Scope       string
	OyafilePath string
}

func (ErrNoScope) Error

func (err ErrNoScope) Error() string

Notes

Bugs

  • Ignoring err.

Jump to

Keyboard shortcuts

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