jobfromtemplate

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EditorKeyMap = Keys{
	&keybindings.DefaultKeyMap.SaveSubmitJob,
	&keybindings.DefaultKeyMap.Escape,
}
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 []*key.Binding

func (*Keys) DisableKeys added in v1.0.5

func (ky *Keys) DisableKeys()

func (*Keys) SetupKeys

func (ky *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