Documentation ¶
Index ¶
- Variables
- func Annotate(ctx context.Context, out io.Writer, loc bass.Range)
- func InputsSource(inputs []string) *bass.Source
- func Repl(ctx context.Context, scope *bass.Scope) error
- func Run(ctx context.Context, env *bass.Scope, inputs []string, filePath string, ...) error
- func Task(ctx context.Context, name string, ...) error
- func WithProgress(ctx context.Context, f func(context.Context) error) (err error)
- func WriteError(ctx context.Context, err error)
- func WriteTrace(ctx context.Context, out io.Writer, trace *bass.Trace)
- type Progress
- type ProgressError
- type ReplSession
- type Vertex
Constants ¶
This section is empty.
Variables ¶
View Source
var ProgressUI = ui.Default
View Source
var ReplFS fs.FS = fstest.MapFS{
"history": replFile,
}
Functions ¶
func InputsSource ¶ added in v0.5.0
func WithProgress ¶ added in v0.7.0
func WriteError ¶
Types ¶
type Progress ¶ added in v0.6.0
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶ added in v0.6.0
func NewProgress() *Progress
func (*Progress) EachVertex ¶ added in v0.6.0
func (*Progress) WrapError ¶ added in v0.6.0
func (prog *Progress) WrapError(msg string, err error) *ProgressError
func (*Progress) WriteStatus ¶ added in v0.6.0
func (prog *Progress) WriteStatus(status *graph.SolveStatus)
type ProgressError ¶ added in v0.6.0
type ProgressError struct {
// contains filtered or unexported fields
}
func (ProgressError) Error ¶ added in v0.6.0
func (err ProgressError) Error() string
type ReplSession ¶ added in v0.4.0
type ReplSession struct {
// contains filtered or unexported fields
}
func (*ReplSession) Complete ¶ added in v0.4.0
func (session *ReplSession) Complete(doc prompt.Document) []prompt.Suggest
func (*ReplSession) Prefix ¶ added in v0.4.0
func (session *ReplSession) Prefix() (string, bool)
func (*ReplSession) ReadLine ¶ added in v0.4.0
func (session *ReplSession) ReadLine(in string)
Click to show internal directories.
Click to hide internal directories.