core

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCollection

func CreateCollection(name string) error

CreateCollection creates a new collection.

func CreateRunnable

func CreateRunnable(collectionName, runnableName string) error

CreateRunnable creates a new runnable.

func CreateShell

func CreateShell(collection, name string) error

CreateShell creates a wrapper script for the collection.

func ExecuteContext

func ExecuteContext(ctx *ExecutionContext, args []string) error

ExecuteContext executes a runnable.

func ExportCollection

func ExportCollection(name, output string) error

ExportCollection exports a collection to a tar.gz file.

func ImportCollection

func ImportCollection(source, name string) error

ImportCollection imports a collection from a source.

func ListCollections

func ListCollections() error

ListCollections prints available collections

func ListRunnables

func ListRunnables(collectionName string) error

ListRunnables prints available runnables for a collection

func ShowCollection

func ShowCollection(name string, showReadme bool) error

ShowCollection prints details about a collection.

func ShowRunnable

func ShowRunnable(collectionName, runnableName string, showReadme bool) error

ShowRunnable prints details about a runnable.

Types

type ExecutionContext

type ExecutionContext struct {
	RunnablePath string
	Config       *config.RunnableConfig
	Environments map[string]string
}

ExecutionContext holds the execution state.

func ResolveCommand

func ResolveCommand(collection string, pathComponents []string) (*ExecutionContext, error)

ResolveCommand resolves a runnable from a collection.

Jump to

Keyboard shortcuts

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