Documentation
¶
Index ¶
- func NewClockModule(_ config.ModuleConfig) module.Module
- func NewGitHubModule(cfg config.ModuleConfig) module.Module
- func NewGreetingModule(cfg config.ModuleConfig) module.Module
- func NewSpotifyModule(cfg config.ModuleConfig) module.Module
- func NewSystemModule(_ config.ModuleConfig) module.Module
- func NewUptimeModule(_ config.ModuleConfig) module.Module
- func NewWeatherModule(cfg config.ModuleConfig) module.Module
- type ClockModule
- type GitHubModule
- type GreetingModule
- type SpotifyModule
- type SystemModule
- type UptimeModule
- type WeatherModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClockModule ¶
func NewClockModule(_ config.ModuleConfig) module.Module
func NewGitHubModule ¶
func NewGitHubModule(cfg config.ModuleConfig) module.Module
func NewGreetingModule ¶
func NewGreetingModule(cfg config.ModuleConfig) module.Module
func NewSpotifyModule ¶ added in v0.1.0
func NewSpotifyModule(cfg config.ModuleConfig) module.Module
func NewSystemModule ¶
func NewSystemModule(_ config.ModuleConfig) module.Module
func NewUptimeModule ¶
func NewUptimeModule(_ config.ModuleConfig) module.Module
func NewWeatherModule ¶
func NewWeatherModule(cfg config.ModuleConfig) module.Module
Types ¶
type ClockModule ¶
type ClockModule struct {
// contains filtered or unexported fields
}
func (*ClockModule) Init ¶
func (m *ClockModule) Init() tea.Cmd
func (*ClockModule) MinSize ¶
func (m *ClockModule) MinSize() (int, int)
func (*ClockModule) Name ¶
func (m *ClockModule) Name() string
func (*ClockModule) View ¶
func (m *ClockModule) View(width, height int) string
type GitHubModule ¶
type GitHubModule struct {
// contains filtered or unexported fields
}
func (*GitHubModule) Init ¶
func (m *GitHubModule) Init() tea.Cmd
func (*GitHubModule) MinSize ¶
func (m *GitHubModule) MinSize() (int, int)
func (*GitHubModule) Name ¶
func (m *GitHubModule) Name() string
func (*GitHubModule) View ¶
func (m *GitHubModule) View(width, height int) string
type GreetingModule ¶
type GreetingModule struct {
// contains filtered or unexported fields
}
func (*GreetingModule) Init ¶
func (m *GreetingModule) Init() tea.Cmd
func (*GreetingModule) MinSize ¶
func (m *GreetingModule) MinSize() (int, int)
func (*GreetingModule) Name ¶
func (m *GreetingModule) Name() string
func (*GreetingModule) View ¶
func (m *GreetingModule) View(width, height int) string
type SpotifyModule ¶ added in v0.1.0
type SpotifyModule struct {
// contains filtered or unexported fields
}
func (*SpotifyModule) ImagePlacements ¶ added in v0.1.0
func (m *SpotifyModule) ImagePlacements() []module.ImagePlacement
ImagePlacements implements module.ImagePlacer. Returns the kitty display-by-ID escape positioned at row 0, col 0 (relative to the module's content area) with cell size constraints.
func (*SpotifyModule) Init ¶ added in v0.1.0
func (m *SpotifyModule) Init() tea.Cmd
func (*SpotifyModule) MinSize ¶ added in v0.1.0
func (m *SpotifyModule) MinSize() (int, int)
func (*SpotifyModule) Name ¶ added in v0.1.0
func (m *SpotifyModule) Name() string
func (*SpotifyModule) View ¶ added in v0.1.0
func (m *SpotifyModule) View(width, height int) string
type SystemModule ¶
type SystemModule struct {
// contains filtered or unexported fields
}
func (*SystemModule) Init ¶
func (m *SystemModule) Init() tea.Cmd
func (*SystemModule) MinSize ¶
func (m *SystemModule) MinSize() (int, int)
func (*SystemModule) Name ¶
func (m *SystemModule) Name() string
func (*SystemModule) View ¶
func (m *SystemModule) View(width, height int) string
type UptimeModule ¶
type UptimeModule struct {
// contains filtered or unexported fields
}
func (*UptimeModule) Init ¶
func (m *UptimeModule) Init() tea.Cmd
func (*UptimeModule) MinSize ¶
func (m *UptimeModule) MinSize() (int, int)
func (*UptimeModule) Name ¶
func (m *UptimeModule) Name() string
func (*UptimeModule) View ¶
func (m *UptimeModule) View(width, height int) string
type WeatherModule ¶
type WeatherModule struct {
// contains filtered or unexported fields
}
func (*WeatherModule) Init ¶
func (m *WeatherModule) Init() tea.Cmd
func (*WeatherModule) MinSize ¶
func (m *WeatherModule) MinSize() (int, int)
func (*WeatherModule) Name ¶
func (m *WeatherModule) Name() string
func (*WeatherModule) View ¶
func (m *WeatherModule) View(width, height int) string
Click to show internal directories.
Click to hide internal directories.