Documentation
¶
Overview ¶
Package config resolves the CLI's connection context — the panel URL, API token, and active workspace — from flags, environment, and ~/.miabi/config.yaml, in that precedence. The token is never logged.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Effective ¶
type Effective struct {
URL string
Token string
Workspace *WorkspaceRef // from the file; may be nil
}
Effective is the resolved context a command runs against.
type File ¶
type File struct {
URL string `yaml:"url,omitempty"`
Token string `yaml:"token,omitempty"`
Workspace *WorkspaceRef `yaml:"workspace,omitempty"`
}
File mirrors ~/.miabi/config.yaml.
type WorkspaceRef ¶
type WorkspaceRef struct {
ID uint `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"`
Slug string `yaml:"slug" json:"slug"`
}
WorkspaceRef is the active workspace persisted by `miabi workspace switch`.
Click to show internal directories.
Click to hide internal directories.