Documentation
¶
Index ¶
- Constants
- func Usage() string
- func VersionVars() map[string]string
- type AlbumCmd
- type ArtistCmd
- type AuthClearCmd
- type AuthCmd
- type AuthImportCmd
- type AuthPasteCmd
- type AuthStatusCmd
- type CLI
- type DeviceCmd
- type DeviceListCmd
- type DeviceSetCmd
- type EpisodeCmd
- type Globals
- type InfoAlbumCmd
- type InfoArgs
- type InfoArtistCmd
- type InfoEpisodeCmd
- type InfoPlaylistCmd
- type InfoShowCmd
- type InfoTrackCmd
- type LibraryAlbumsAddCmd
- type LibraryAlbumsCmd
- type LibraryAlbumsListCmd
- type LibraryAlbumsRemoveCmd
- type LibraryArtistsCmd
- type LibraryArtistsFollowCmd
- type LibraryArtistsListCmd
- type LibraryArtistsUnfollowCmd
- type LibraryCmd
- type LibraryPlaylistsCmd
- type LibraryPlaylistsListCmd
- type LibraryTracksAddCmd
- type LibraryTracksCmd
- type LibraryTracksListCmd
- type LibraryTracksRemoveCmd
- type NextCmd
- type PauseCmd
- type PlayCmd
- type PlaylistAddCmd
- type PlaylistCmd
- type PlaylistCreateCmd
- type PlaylistRemoveCmd
- type PlaylistTracksCmd
- type PrevCmd
- type QueueAddCmd
- type QueueClearCmd
- type QueueCmd
- type QueueShowCmd
- type RepeatCmd
- type SearchAlbumCmd
- type SearchArgs
- type SearchArtistCmd
- type SearchCmd
- type SearchEpisodeCmd
- type SearchPlaylistCmd
- type SearchShowCmd
- type SearchTrackCmd
- type SeekCmd
- type ShowCmd
- type ShuffleCmd
- type StatusCmd
- type TrackCmd
- type VolumeCmd
Constants ¶
View Source
const Version = "0.9.0"
Variables ¶
This section is empty.
Functions ¶
func VersionVars ¶
Types ¶
type AlbumCmd ¶
type AlbumCmd struct {
Info InfoAlbumCmd `kong:"cmd,help='Album info.'"`
}
type ArtistCmd ¶
type ArtistCmd struct {
Info InfoArtistCmd `kong:"cmd,help='Artist info.'"`
}
type AuthClearCmd ¶
type AuthClearCmd struct{}
type AuthCmd ¶
type AuthCmd struct {
Status AuthStatusCmd `kong:"cmd,help='Show cookie status.'"`
Import AuthImportCmd `kong:"cmd,help='Import browser cookies.'"`
Paste AuthPasteCmd `kong:"cmd,help='Paste cookie values from the browser.'"`
Clear AuthClearCmd `kong:"cmd,help='Clear stored cookies.'"`
}
type AuthImportCmd ¶
type AuthPasteCmd ¶ added in v0.3.0
type AuthStatusCmd ¶
type AuthStatusCmd struct{}
type CLI ¶
type CLI struct {
Globals Globals `kong:"embed"`
Auth AuthCmd `kong:"cmd,help='Authentication and cookies.'"`
Search SearchCmd `kong:"cmd,help='Search Spotify.'"`
Track TrackCmd `kong:"cmd,help='Track operations.'"`
Album AlbumCmd `kong:"cmd,help='Album operations.'"`
Artist ArtistCmd `kong:"cmd,help='Artist operations.'"`
Playlist PlaylistCmd `kong:"cmd,help='Playlist operations.'"`
Show ShowCmd `kong:"cmd,help='Show operations.'"`
Episode EpisodeCmd `kong:"cmd,help='Episode operations.'"`
Play PlayCmd `kong:"cmd,help='Start playback.'"`
Pause PauseCmd `kong:"cmd,help='Pause playback.'"`
Next NextCmd `kong:"cmd,help='Skip to next.'"`
Prev PrevCmd `kong:"cmd,help='Skip to previous.'"`
Seek SeekCmd `kong:"cmd,help='Seek within track.'"`
Volume VolumeCmd `kong:"cmd,help='Set volume.'"`
Shuffle ShuffleCmd `kong:"cmd,help='Toggle shuffle.'"`
Repeat RepeatCmd `kong:"cmd,help='Set repeat mode.'"`
Status StatusCmd `kong:"cmd,help='Playback status.'"`
Queue QueueCmd `kong:"cmd,help='Queue operations.'"`
Library LibraryCmd `kong:"cmd,help='Library operations.'"`
Device DeviceCmd `kong:"cmd,help='Playback devices.'"`
}
type DeviceCmd ¶
type DeviceCmd struct {
List DeviceListCmd `kong:"cmd,help='List devices.'"`
Set DeviceSetCmd `kong:"cmd,help='Set active device.'"`
}
type DeviceListCmd ¶
type DeviceListCmd struct{}
type DeviceSetCmd ¶
type DeviceSetCmd struct {
Device string `arg:"" required:"" help:"Device name or id."`
}
type EpisodeCmd ¶
type EpisodeCmd struct {
Info InfoEpisodeCmd `kong:"cmd,help='Episode info.'"`
}
type Globals ¶
type Globals struct {
Config string `help:"Config file path." env:"SPOGO_CONFIG"`
Profile string `help:"Profile name." env:"SPOGO_PROFILE"`
Timeout time.Duration `help:"HTTP timeout." env:"SPOGO_TIMEOUT" default:"10s"`
Market string `help:"Market country code." env:"SPOGO_MARKET"`
Language string `help:"Language/locale." env:"SPOGO_LANGUAGE"`
Device string `help:"Device name or id." env:"SPOGO_DEVICE"`
Engine string `help:"Engine (auto|web|connect|applescript)." env:"SPOGO_ENGINE"`
JSON bool `help:"JSON output." env:"SPOGO_JSON"`
Plain bool `help:"Plain output." env:"SPOGO_PLAIN"`
NoColor bool `help:"Disable color output." env:"SPOGO_NO_COLOR"`
Quiet bool `short:"q" help:"Quiet output." env:"SPOGO_QUIET"`
Verbose bool `short:"v" help:"Verbose output." env:"SPOGO_VERBOSE"`
Debug bool `short:"d" help:"Debug output." env:"SPOGO_DEBUG"`
NoInput bool `help:"Disable prompts." env:"SPOGO_NO_INPUT"`
Version kong.VersionFlag `help:"Print version."`
}
type InfoAlbumCmd ¶
type InfoAlbumCmd struct{ InfoArgs }
type InfoArgs ¶
type InfoArgs struct {
ID string `arg:"" required:"" help:"Spotify ID, URI, or URL."`
}
type InfoArtistCmd ¶
type InfoArtistCmd struct{ InfoArgs }
type InfoEpisodeCmd ¶
type InfoEpisodeCmd struct{ InfoArgs }
type InfoPlaylistCmd ¶
type InfoPlaylistCmd struct{ InfoArgs }
type InfoShowCmd ¶
type InfoShowCmd struct{ InfoArgs }
type InfoTrackCmd ¶
type InfoTrackCmd struct{ InfoArgs }
type LibraryAlbumsAddCmd ¶
type LibraryAlbumsAddCmd struct {
IDs []string `arg:"" required:"" help:"Album IDs/URLs/URIs."`
}
type LibraryAlbumsCmd ¶
type LibraryAlbumsCmd struct {
List LibraryAlbumsListCmd `kong:"cmd,help='List saved albums.'"`
Add LibraryAlbumsAddCmd `kong:"cmd,help='Save albums.'"`
Remove LibraryAlbumsRemoveCmd `kong:"cmd,help='Remove saved albums.'"`
}
type LibraryAlbumsListCmd ¶
type LibraryAlbumsRemoveCmd ¶
type LibraryAlbumsRemoveCmd struct {
IDs []string `arg:"" required:"" help:"Album IDs/URLs/URIs."`
}
type LibraryArtistsCmd ¶
type LibraryArtistsCmd struct {
List LibraryArtistsListCmd `kong:"cmd,help='List followed artists.'"`
Follow LibraryArtistsFollowCmd `kong:"cmd,help='Follow artists.'"`
Unfollow LibraryArtistsUnfollowCmd `kong:"cmd,help='Unfollow artists.'"`
}
type LibraryArtistsFollowCmd ¶
type LibraryArtistsFollowCmd struct {
IDs []string `arg:"" required:"" help:"Artist IDs/URLs/URIs."`
}
type LibraryArtistsListCmd ¶
type LibraryArtistsUnfollowCmd ¶
type LibraryArtistsUnfollowCmd struct {
IDs []string `arg:"" required:"" help:"Artist IDs/URLs/URIs."`
}
type LibraryCmd ¶
type LibraryCmd struct {
Tracks LibraryTracksCmd `kong:"cmd,help='Track library.'"`
Albums LibraryAlbumsCmd `kong:"cmd,help='Album library.'"`
Artists LibraryArtistsCmd `kong:"cmd,help='Artist library.'"`
Playlists LibraryPlaylistsCmd `kong:"cmd,help='Playlist library.'"`
}
type LibraryPlaylistsCmd ¶
type LibraryPlaylistsCmd struct {
List LibraryPlaylistsListCmd `kong:"cmd,help='List playlists.'"`
}
type LibraryPlaylistsListCmd ¶
type LibraryTracksAddCmd ¶
type LibraryTracksAddCmd struct {
IDs []string `arg:"" required:"" help:"Track IDs/URLs/URIs."`
}
type LibraryTracksCmd ¶
type LibraryTracksCmd struct {
List LibraryTracksListCmd `kong:"cmd,help='List saved tracks.'"`
Add LibraryTracksAddCmd `kong:"cmd,help='Save tracks.'"`
Remove LibraryTracksRemoveCmd `kong:"cmd,help='Remove saved tracks.'"`
}
type LibraryTracksListCmd ¶
type LibraryTracksRemoveCmd ¶
type LibraryTracksRemoveCmd struct {
IDs []string `arg:"" required:"" help:"Track IDs/URLs/URIs."`
}
type PlayCmd ¶
type PlaylistAddCmd ¶
type PlaylistCmd ¶
type PlaylistCmd struct {
Info InfoPlaylistCmd `kong:"cmd,help='Playlist info.'"`
Create PlaylistCreateCmd `kong:"cmd,help='Create playlist.'"`
Add PlaylistAddCmd `kong:"cmd,help='Add tracks to playlist.'"`
Remove PlaylistRemoveCmd `kong:"cmd,help='Remove tracks from playlist.'"`
Tracks PlaylistTracksCmd `kong:"cmd,help='List playlist tracks.'"`
}
type PlaylistCreateCmd ¶
type PlaylistRemoveCmd ¶
type PlaylistTracksCmd ¶
type QueueAddCmd ¶
type QueueAddCmd struct {
Item string `arg:"" required:"" help:"Track URI/URL/ID."`
}
type QueueClearCmd ¶
type QueueClearCmd struct{}
type QueueCmd ¶
type QueueCmd struct {
Add QueueAddCmd `kong:"cmd,help='Add to queue.'"`
Show QueueShowCmd `kong:"cmd,help='Show queue.'"`
Clear QueueClearCmd `kong:"cmd,help='Clear queue (if supported).'"`
}
type QueueShowCmd ¶
type QueueShowCmd struct{}
type RepeatCmd ¶
type RepeatCmd struct {
Mode string `arg:"" required:"" help:"off|track|context."`
}
type SearchAlbumCmd ¶
type SearchAlbumCmd struct{ SearchArgs }
type SearchArgs ¶
type SearchArtistCmd ¶
type SearchArtistCmd struct{ SearchArgs }
type SearchCmd ¶
type SearchCmd struct {
Track SearchTrackCmd `kong:"cmd,help='Search tracks.'"`
Album SearchAlbumCmd `kong:"cmd,help='Search albums.'"`
Artist SearchArtistCmd `kong:"cmd,help='Search artists.'"`
Playlist SearchPlaylistCmd `kong:"cmd,help='Search playlists.'"`
Episode SearchEpisodeCmd `kong:"cmd,help='Search episodes.'"`
Show SearchShowCmd `kong:"cmd,help='Search shows.'"`
}
type SearchEpisodeCmd ¶
type SearchEpisodeCmd struct{ SearchArgs }
type SearchPlaylistCmd ¶
type SearchPlaylistCmd struct{ SearchArgs }
type SearchShowCmd ¶
type SearchShowCmd struct{ SearchArgs }
type SearchTrackCmd ¶
type SearchTrackCmd struct{ SearchArgs }
type SeekCmd ¶
type SeekCmd struct {
Position string `arg:"" required:"" help:"Position ms or mm:ss."`
}
type ShowCmd ¶
type ShowCmd struct {
Info InfoShowCmd `kong:"cmd,help='Show info.'"`
}
type ShuffleCmd ¶
type ShuffleCmd struct {
State string `arg:"" required:"" help:"on|off."`
}
type TrackCmd ¶
type TrackCmd struct {
Info InfoTrackCmd `kong:"cmd,help='Track info.'"`
}
Click to show internal directories.
Click to hide internal directories.