mergeshells

package
v0.6.211 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatFile

func CatFile(filePath string) (string, error)

func DependenciesToShell

func DependenciesToShell(shell string, deps ...string) string

func GenerateLogs added in v0.6.49

func GenerateLogs(script string) string

func GenerateShellScript

func GenerateShellScript(path string) string

func GetDependencies

func GetDependencies(path string) []string

func ImportPath

func ImportPath(t *terminal.Terminal, path string, store MergeShellStore)

func MergeShells

func MergeShells(deps ...string) string

func WriteBrevFile

func WriteBrevFile(t *terminal.Terminal, deps []string, gitURL string, path string) *error

Types

type MergeShellStore

type MergeShellStore interface {
	GetFileAsString(path string) (string, error)
}

type OrderDefsFailures

type OrderDefsFailures struct {
	Order    []string
	Defs     map[string]ShellFragment
	Failures []string
}

type ShellFragment

type ShellFragment struct {
	Name         *string  `json:"name"`
	Tag          *string  `json:"tag"`
	Comment      *string  `json:"comment"`
	Script       []string `json:"script"`
	Dependencies []string `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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