jobfromtemplate

package
v0.0.0-...-9d695bc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplatesListCols = []table.Column{
	{
		Title: "Name",
		Width: 20,
	},
	{
		Title: "Description",
		Width: 40,
	},
	{
		Title: "Path",
		Width: 100,
	},
}

Functions

func EditorOn

func EditorOn() tea.Cmd

func GetTemplate

func GetTemplate(name string, l *log.Logger) tea.Cmd

func GetTemplateList

func GetTemplateList(paths []string, l *log.Logger) tea.Cmd

func SaveToFile

func SaveToFile(name string, content string, l *log.Logger) (string, error)

Types

type EditTemplate

type EditTemplate bool

type JobFromTemplateTab

type JobFromTemplateTab struct {
	TemplatesTable table.Model
	TemplatesList  TemplatesListRows
	TemplateEditor textarea.Model
	NewJobScript   string
	EditTemplate   bool
}

func (*JobFromTemplateTab) View

func (jft *JobFromTemplateTab) View(l *log.Logger) string

type Keys

type Keys map[*key.Binding]bool

func (*Keys) SetupKeys

func (k *Keys) SetupKeys()

type TemplateText

type TemplateText string

type TemplatesListRows

type TemplatesListRows []table.Row

Jump to

Keyboard shortcuts

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