saveandrestore

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaveOutputFlagName string = "output"
)

Variables

View Source
var (
	SaveOutputAliasNames []string = []string{"o"}
)

Functions

func NewRestoreSubcommand

func NewRestoreSubcommand() *cli.Command

func NewSaveSubcommand

func NewSaveSubcommand() *cli.Command

func SaveAction

func SaveAction(ctx context.Context, cliCmd *cli.Command) error

Types

type GlobalLayout

type GlobalLayout struct {
}

type Node

type Node struct {
	Type     NodeType
	Children []Node
}

type NodeType

type NodeType uint64
const (
	RootNodeType NodeType = iota + 1
	WorkspaceNodeType
	OutputNodeType
	HorizontalSplitNodeType
	VerticalSplitNodeType
	TabbedNodeType
	StackedNodeType
	ApplicationNodeType

	ErrNodeTypeNotRecognized = constError("unrecognized node type")
)

func (NodeType) MarshalJSON

func (t NodeType) MarshalJSON() ([]byte, error)

func (*NodeType) UnmarshalJSON

func (t *NodeType) UnmarshalJSON(bs []byte) error

type SaveContext

type SaveContext struct {
	CLICommand *cli.Command
	Output     string
	Client     i3ipc.PorcelainClient
	Logger     *slog.Logger
	Ctx        context.Context
}

Jump to

Keyboard shortcuts

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