Documentation
¶
Index ¶
- func Clear(path string) error
- func DefaultStatePath(configPath string) string
- func ExtractGroupIDs(groups []*config.Group) []string
- func GetStatePath(p *paths.Paths, repository string) (string, error)
- func ResolveGroupPath(cfg *config.Config, groupIDs []string) ([]*config.Group, bool)
- type NavigationState
- type ViewState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStatePath ¶
DefaultStatePath returns the default state file path relative to config (legacy)
func ExtractGroupIDs ¶
ExtractGroupIDs converts a slice of group pointers to their IDs
func GetStatePath ¶ added in v0.3.0
GetStatePath returns the state file path for a repository using the new paths system
Types ¶
type NavigationState ¶
type NavigationState struct {
ViewState ViewState `yaml:"viewState"`
GroupPath []string `yaml:"groupPath,omitempty"`
SelectedWorkflow string `yaml:"selectedWorkflow,omitempty"`
FromPinnedView bool `yaml:"fromPinnedView,omitempty"`
// List selection indices for better UX
}
NavigationState represents the persisted navigation state
func Load ¶
func Load(path string) (*NavigationState, error)
Load reads the navigation state from a file
func LoadWithPaths ¶ added in v0.3.0
func LoadWithPaths(p *paths.Paths, repository string) (*NavigationState, error)
LoadWithPaths loads state using the new paths system with migration support
func (*NavigationState) Save ¶
func (s *NavigationState) Save(path string) error
Save writes the navigation state to a file
Click to show internal directories.
Click to hide internal directories.