plan

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LastFunction

func LastFunction(line string) (string, string, []string)

func RunFunc

func RunFunc(project *projects.Project) func(L *lua.LState) int

RunFunc creates a Lua function that runs a script in a project

func ValueFunc

func ValueFunc(project *projects.Project) func(L *lua.LState) int

ValueFunc creates a Lua function that reads values from files in a project

Types

type Completer

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

Completer provides command completion for the plan REPL

func NewCompleter

func NewCompleter(repos []RepoContext) *Completer

NewCompleter creates a new completer with the given repos

func (*Completer) Complete

func (c *Completer) Complete(line string) []string

Complete provides command completion for the plan REPL

type RepoContext

type RepoContext struct {
	Project *projects.Project
	VM      *lua.LState
}

RepoContext represents an execution context for one repo

Jump to

Keyboard shortcuts

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