Documentation
¶
Overview ¶
Package tui provides the terminal user interface for bored using the Bubble Tea framework. It implements views for configuration, board display, work item creation, and detail editing.
Index ¶
- Constants
- func ClearCredentials() error
- func ConfigFileExists() bool
- func GetConfigFilePath() string
- func HasStoredCredentials() bool
- func LoadCredentials() (org, project, team, areaPath, pat, username string, err error)
- func SaveConfigFile(config AppConfig) error
- func SaveCredentials(org, project, team, areaPath, pat, username string) error
- type AppConfig
- type Model
- type View
Constants ¶
const NotificationCheckInterval = 30 * time.Second
NotificationCheckInterval is how often to check for work item changes.
Variables ¶
This section is empty.
Functions ¶
func ClearCredentials ¶
func ClearCredentials() error
ClearCredentials removes the stored credentials from the keychain
func ConfigFileExists ¶
func ConfigFileExists() bool
ConfigFileExists checks if the config file exists
func GetConfigFilePath ¶
func GetConfigFilePath() string
GetConfigFilePath returns the config file path for display purposes
func HasStoredCredentials ¶
func HasStoredCredentials() bool
HasStoredCredentials checks if credentials are stored in the keychain
func LoadCredentials ¶
LoadCredentials loads the Azure DevOps credentials from the system keychain
func SaveConfigFile ¶
SaveConfigFile saves the application configuration to the config file
func SaveCredentials ¶
SaveCredentials saves the Azure DevOps credentials to the system keychain
Types ¶
type AppConfig ¶
type AppConfig struct {
// General settings
DefaultShowAll bool `toml:"default_show_all"` // Default value for "show all" toggle on board
EnableNotifications bool `toml:"enable_notifications"` // Enable sound notifications for work item changes
// Display settings
MaxWorkItems int `toml:"max_work_items"` // Maximum work items to fetch (default 50)
}
AppConfig represents the application configuration stored in a file
func DefaultConfig ¶
func DefaultConfig() AppConfig
DefaultConfig returns a new AppConfig with default values
func LoadConfigFile ¶
LoadConfigFile loads the application configuration from the config file
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the main Bubble Tea model containing all application state.
func NewModel ¶
func NewModel() Model
NewModel creates and initializes a new Model with default values. It loads credentials from the keychain and app config from the config file.