Documentation
¶
Index ¶
- func CreateCollection(name string) error
- func CreateRunnable(collectionName, runnableName string) error
- func CreateShell(collection, name string) error
- func ExecuteContext(ctx *ExecutionContext, args []string) error
- func ExportCollection(name, output string) error
- func ImportCollection(source, name string) error
- func ListCollections() error
- func ListRunnables(collectionName string) error
- func ShowCollection(name string, showReadme bool) error
- func ShowRunnable(collectionName, runnableName string, showReadme bool) error
- type ExecutionContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCollection ¶
CreateCollection creates a new collection.
func CreateRunnable ¶
CreateRunnable creates a new runnable.
func CreateShell ¶
CreateShell creates a wrapper script for the collection.
func ExecuteContext ¶
func ExecuteContext(ctx *ExecutionContext, args []string) error
ExecuteContext executes a runnable.
func ExportCollection ¶
ExportCollection exports a collection to a tar.gz file.
func ImportCollection ¶
ImportCollection imports a collection from a source.
func ListRunnables ¶
ListRunnables prints available runnables for a collection
func ShowCollection ¶
ShowCollection prints details about a collection.
func ShowRunnable ¶
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.
Click to show internal directories.
Click to hide internal directories.