Documentation
¶
Overview ¶
Package composeedit provides the embedded editor for compose files, with YAML syntax validation before saving.
Index ¶
- func ValidateYAML(content string) error
- type Model
- func (m Model) CreateDir() string
- func (m Model) IsCreate() bool
- func (m Model) Path() string
- func (m Model) Project() string
- func (m *Model) SetContent(project, path, content string) tea.Cmd
- func (m *Model) SetCreate(dir string) tea.Cmd
- func (m *Model) SetError(s string)
- func (m *Model) SetSaving(v bool)
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) Value() string
- func (m Model) View(width int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateYAML ¶
ValidateYAML reports whether content is syntactically valid YAML.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the compose-file editor.
func (*Model) SetContent ¶
SetContent loads a project's compose file into the editor and focuses it.
func (*Model) SetCreate ¶
SetCreate opens the editor to author a new docker-compose.yaml in dir, pre-filled with a starter template.
Click to show internal directories.
Click to hide internal directories.