commands

package
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSong

func FormatSong(current *spotify.CurrentlyPlaying) string

func PrintDevices

func PrintDevices(devices []spotify.PlayerDevice) error

Types

type Commands

type Commands struct {
	Context *gctx.Context
	// contains filtered or unexported fields
}

func (*Commands) ActiveDeviceExists

func (c *Commands) ActiveDeviceExists(ctx *gctx.Context) bool

func (*Commands) AlbumTracks

func (c *Commands) AlbumTracks(ctx *gctx.Context, album spotify.ID, page int) (*spotify.SimpleTrackPage, error)

func (*Commands) ArtistAlbums

func (c *Commands) ArtistAlbums(ctx *gctx.Context, artist spotify.ID, page int) (*spotify.SimpleAlbumPage, error)

func (*Commands) ChangeVolume

func (c *Commands) ChangeVolume(ctx *gctx.Context, vol int) error

func (*Commands) ClearRadio

func (c *Commands) ClearRadio(ctx *gctx.Context) error

func (*Commands) Client

func (c *Commands) Client() *spotify.Client

func (*Commands) CreateRadioPlaylist

func (c *Commands) CreateRadioPlaylist(ctx *gctx.Context, name string) (*spotify.FullPlaylist, *sql.DB, error)

func (*Commands) Devices

func (c *Commands) Devices(ctx *gctx.Context) error

func (*Commands) FormatState added in v0.0.37

func (c *Commands) FormatState(state *spotify.PlayerState) (string, error)

func (*Commands) GetQueue

func (c *Commands) GetQueue(ctx *gctx.Context) (*spotify.Queue, error)

func (*Commands) GetRadioPlaylist

func (c *Commands) GetRadioPlaylist(ctx *gctx.Context, name string) (*spotify.FullPlaylist, *sql.DB, error)

func (*Commands) Like

func (c *Commands) Like(ctx *gctx.Context) error
func (c *Commands) Link(ctx *gctx.Context) (string, error)

func (*Commands) LinkContext

func (c *Commands) LinkContext(ctx *gctx.Context) (string, error)

func (*Commands) Next

func (c *Commands) Next(ctx *gctx.Context, amt int) error

func (*Commands) NowPlaying

func (c *Commands) NowPlaying(ctx *gctx.Context) error

func (*Commands) Pause

func (c *Commands) Pause(ctx *gctx.Context) error

func (*Commands) Play

func (c *Commands) Play(ctx *gctx.Context) error

func (*Commands) PlayLikedSongs

func (c *Commands) PlayLikedSongs(ctx *gctx.Context, position int) error

func (*Commands) PlaySongInPlaylist

func (c *Commands) PlaySongInPlaylist(ctx *gctx.Context, context *spotify.URI, offset int) error

func (*Commands) PlayUrl

func (c *Commands) PlayUrl(ctx *gctx.Context, args []string) error

func (*Commands) PlaylistTracks

func (c *Commands) PlaylistTracks(ctx *gctx.Context, playlist spotify.ID, page int) (*spotify.PlaylistTrackPage, error)

func (*Commands) Playlists

func (c *Commands) Playlists(ctx *gctx.Context, page int) (*spotify.SimplePlaylistPage, error)

func (*Commands) Previous

func (c *Commands) Previous(ctx *gctx.Context) error

func (*Commands) PrintPlaying

func (c *Commands) PrintPlaying(current *spotify.CurrentlyPlaying) error

func (*Commands) QueueSong

func (c *Commands) QueueSong(ctx *gctx.Context, id spotify.ID) error

func (*Commands) Radio

func (c *Commands) Radio(ctx *gctx.Context) error

func (*Commands) RadioFromAlbum

func (c *Commands) RadioFromAlbum(ctx *gctx.Context, album spotify.SimpleAlbum) error

func (*Commands) RadioFromPlaylist

func (c *Commands) RadioFromPlaylist(ctx *gctx.Context, playlist spotify.SimplePlaylist) error

func (*Commands) RadioFromSavedTracks

func (c *Commands) RadioFromSavedTracks(ctx *gctx.Context) error

func (*Commands) RadioGivenArtist

func (c *Commands) RadioGivenArtist(ctx *gctx.Context, artist spotify.SimpleArtist) error

func (*Commands) RadioGivenList

func (c *Commands) RadioGivenList(ctx *gctx.Context, song_ids []spotify.ID, name string) error

func (*Commands) RadioGivenSong

func (c *Commands) RadioGivenSong(ctx *gctx.Context, song spotify.SimpleTrack, pos int) error

func (*Commands) RefillRadio

func (c *Commands) RefillRadio(ctx *gctx.Context) error

func (*Commands) Repeat

func (c *Commands) Repeat(ctx *gctx.Context) error

func (*Commands) Search

func (c *Commands) Search(ctx *gctx.Context, search string, page int) (*spotify.SearchResult, error)

func (*Commands) Seek

func (c *Commands) Seek(ctx *gctx.Context, fwd bool) error

func (*Commands) SetDevice

func (c *Commands) SetDevice(ctx *gctx.Context, device spotify.PlayerDevice) error

func (*Commands) SetPosition

func (c *Commands) SetPosition(ctx *gctx.Context, pos int) error

func (*Commands) SetVolume

func (c *Commands) SetVolume(ctx *gctx.Context, vol int) error

func (*Commands) Shuffle

func (c *Commands) Shuffle(ctx *gctx.Context) error

func (*Commands) SongExists

func (c *Commands) SongExists(db *sql.DB, song spotify.ID) (bool, error)

func (*Commands) Status

func (c *Commands) Status(ctx *gctx.Context) error

func (*Commands) TogglePlay

func (c *Commands) TogglePlay(ctx *gctx.Context) error

func (*Commands) TrackList

func (c *Commands) TrackList(ctx *gctx.Context, page int) (*spotify.SavedTrackPage, error)

func (*Commands) Unlike

func (c *Commands) Unlike(ctx *gctx.Context) error

func (*Commands) User

func (c *Commands) User() string

func (*Commands) UserAlbums

func (c *Commands) UserAlbums(ctx *gctx.Context, page int) (*spotify.SavedAlbumPage, error)

func (*Commands) UserArtists

func (c *Commands) UserArtists(ctx *gctx.Context, page int) (*spotify.FullArtistCursorPage, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL