editor

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package editor contains the Model, View and Update functions for the workflow editor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(ctx context.Context, jobPath string) *exec.Cmd

Command create a bubbletea command that opens the text editor.

Types

type ExitMsg

type ExitMsg struct {
	JobID [32]byte
}

ExitMsg msg closes to editor model

type ModelBuilder

type ModelBuilder struct {
	Client *deepsquare.Client
}

ModelBuilder contains the dependencies used to build the bubbletea Model for the text editor.

func (*ModelBuilder) Build

func (b *ModelBuilder) Build(ctx context.Context) tea.Model

Build the bubbletea Model for the text editor.

Jump to

Keyboard shortcuts

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