store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Message string
	Warning bool
}

type Store

type Store struct {
	CodexHome string
	StateHome string
}

func NewFromEnvironment

func NewFromEnvironment() (*Store, error)

func (*Store) Current

func (s *Store) Current() (string, bool, error)

func (*Store) Doctor

func (s *Store) Doctor() []Check

func (*Store) List

func (s *Store) List() ([]string, string, error)

List returns the saved profile names in sorted order and the selected one.

func (*Store) Login

func (s *Store) Login(name string, runLogin func(home string) error) (string, error)

func (*Store) Use

func (s *Store) Use(name string) (string, error)

Jump to

Keyboard shortcuts

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