form

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(opts command.Options) bool

IsEmpty checks if the given options objects is empty.

func Run

func Run() (command.Options, error)

Run runs the menus programs to introduced the required data to connect with a database.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is a meta-model.

func (*Model) Database

func (m *Model) Database() string

Database returns te database name value.

func (*Model) Host

func (m *Model) Host() string

Host returns the host value.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initialize the meta-model.

func (*Model) Password

func (m *Model) Password() string

Password returns the password value.

func (*Model) Port

func (m *Model) Port() string

Port returns the Port value.

func (*Model) SSL

func (m *Model) SSL() string

SSL returns te ssl name value.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update update the view of the meta-model.

func (*Model) User

func (m *Model) User() string

User returns the user value.

func (*Model) View

func (m *Model) View() string

View displays the content on the terminal.

Jump to

Keyboard shortcuts

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