Documentation
¶
Index ¶
- func NewRegistry(options Options) segment.Registry
- func Render(layout segment.Layout, position segment.Position, context segment.Context) string
- func RenderWithin(layout segment.Layout, position segment.Position, context segment.Context, ...) string
- type Config
- func (self *Config) GetRegistry() segment.Registry
- func (self *Config) NextRefresh(phase segment.Phase) time.Time
- func (self *Config) Render(position segment.Position, context segment.Context) string
- func (self *Config) RenderInfo(context segment.Context) (string, error)
- func (self *Config) RenderWithin(position segment.Position, context segment.Context, cells int) string
- func (self *Config) ReplaceLayout(layout segment.Layout)
- type Options
- type Sources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegistry ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfiguration ¶
func (*Config) GetRegistry ¶
func (*Config) RenderWithin ¶
func (*Config) ReplaceLayout ¶
type Options ¶
type Options struct {
Workspace *work.Space
Session cycle.Session
ModelEffortLevels []string
IsFast bool
IsSimulated bool
IsUnconfined bool
UsageReporter agent.UsageReporter
UsageCachePath string
UsageIsSelfRefreshing bool
UsageGauges *usage.Gauges
Currency money.Currency
SandboxHostname string
Sources Sources
}
type Sources ¶
type Sources struct {
IsTurnRunning func() bool
IsSessionPersisted func() bool
GetContextUsage func() (int, int)
GetCacheUsage func() (int, int)
GetSessionSpend func() (float64, bool)
GetGrantedCaps func() caps.Set
GetGroupStatus func() caps.GroupStatus
GetPathGrants func() []pathgrant.Grant
GetForwardedRoutes func() []portgrant.Route
IsPrefixPending func() bool
GetTurnTiming func() turn.Timing
GetTurnCount func() int
GetJobs func() []jobs.Snapshot
}
Click to show internal directories.
Click to hide internal directories.