layout

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCommandAPI added in v0.4.20

type ConfigCommandAPI struct {
	*Layout
}

ConfigCommandAPI provides an indirect API for user command interactions with a Table - without causing cyclic imports :-(

See command.ConfigAPI

func (*ConfigCommandAPI) SetLocaleTag added in v0.4.20

func (cfg *ConfigCommandAPI) SetLocaleTag(localeTag string)

func (*ConfigCommandAPI) SetPrefix added in v0.4.20

func (cfg *ConfigCommandAPI) SetPrefix(symbols ...string)

func (*ConfigCommandAPI) SetProfile added in v0.4.20

func (cfg *ConfigCommandAPI) SetProfile(profile *profile.Profile)

type Layout

type Layout struct {
	PrefixParser    prefix.Parser // parser for skipping table prefixes
	profile.Profile               // profile to apply when rendering a table
	LocaleTag       string        // locale to use when sorting
	CommandArgs     []string      // REMOVE: 2026-03-06 ?
	Commands        []api.Command // commands to apply to a table
	Errors          []error       // command errors
}

no pointers - Layout should be usable without further initialisation

func (*Layout) ApplyConfigCommands added in v0.4.20

func (l *Layout) ApplyConfigCommands()

func (*Layout) SetCommandArgs added in v0.4.20

func (l *Layout) SetCommandArgs(args []string) error

Jump to

Keyboard shortcuts

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