models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionUpgradeHeader = ui.Section{
		Name: "VersionUpgradeHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Check for Upgrade %s", ui.Whisper("`anchor version upgrade`"))),
		},
	}

	VersionUpgradeUnavailable = ui.Section{
		Name: "VersionUpgradeUnavailable",
		Model: ui.MessageLines{
			ui.StepAlert("Already up to date!"),
			ui.StepHint("Your anchor CLI is already up to date, check back soon for updates."),
		},
	}
)
View Source
var (
	VersionHeader = ui.Section{
		Name: "VersionHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Show Version Info %s", ui.Whisper("`anchor version'"))),
		},
	}
)

Functions

This section is empty.

Types

type Version

type Version struct {
	Arch, Commit, Date, OS, Version string
}

func (*Version) Init

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

func (*Version) Update

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

func (*Version) View

func (m *Version) View() string

type VersionUpgrade added in v0.1.5

type VersionUpgrade struct {
	Command     string
	InClipboard bool
}

func (*VersionUpgrade) Init added in v0.1.5

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

func (*VersionUpgrade) Update added in v0.1.5

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

func (*VersionUpgrade) View added in v0.1.5

func (m *VersionUpgrade) View() string

Jump to

Keyboard shortcuts

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