@bzenky/spoti 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ _spoti_completion() {
4
4
  cur="\${COMP_WORDS[COMP_CWORD]}"
5
5
  command="\${COMP_WORDS[1]}"
6
6
 
7
- local commands="setup login logout status config interactive now open launch lyrics pause resume next previous devices device seek restart volume queue shuffle repeat album artist playlists playlist-create add playlist liked like unlike recent update search play completion i p pa r np ly q s vol dev devs pl pls rep rec n prev sk rst app alb art"
7
+ local commands="setup login logout status config interactive now open launch lyrics pause resume next previous devices device seek restart volume queue shuffle repeat album artist playlists playlist-create playlist-edit playlist-move add playlist liked like unlike recent update search play completion i p pa r np ly q s vol dev devs pl pls rep rec n prev sk rst app alb art"
8
8
  local global_options="-h --help -V --version"
9
9
 
10
10
  if (( COMP_CWORD == 1 )); then
@@ -37,6 +37,12 @@ _spoti_completion() {
37
37
  playlist-create)
38
38
  COMPREPLY=( $(compgen -W "--public -h --help" -- "$cur") )
39
39
  ;;
40
+ playlist-edit)
41
+ COMPREPLY=( $(compgen -W "--name --description --public --private -h --help" -- "$cur") )
42
+ ;;
43
+ playlist-move)
44
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
45
+ ;;
40
46
  playlists|pls|liked|recent|rec|search|s)
41
47
  COMPREPLY=( $(compgen -W "-l --limit -h --help" -- "$cur") )
42
48
  ;;
@@ -100,6 +106,8 @@ _spoti() {
100
106
  'art:alias for artist'
101
107
  'playlists:browse and optionally play your Spotify playlists'
102
108
  'playlist-create:create a Spotify playlist'
109
+ 'playlist-edit:edit the details of a playlist you own'
110
+ 'playlist-move:move a track within a playlist you own'
103
111
  'add:add the current or a searched track to a playlist'
104
112
  'playlist:show one of your Spotify playlists'
105
113
  'liked:browse and optionally play your liked tracks'
@@ -172,6 +180,12 @@ _spoti() {
172
180
  playlist-create)
173
181
  _arguments '--public[make the playlist public]' '1:playlist name:'
174
182
  ;;
183
+ playlist-edit)
184
+ _arguments '--name[set the playlist name]:name:' '--description[set the playlist description]:description:' '(--public --private)'--public[make the playlist public]' '(--public --private)'--private[make the playlist private]' '*:playlist:'
185
+ ;;
186
+ playlist-move)
187
+ _arguments '1:playlist:' '2:current position:' '3:new position:'
188
+ ;;
175
189
  playlists|pls|liked|recent|rec)
176
190
  _arguments '(-l --limit)'{-l,--limit}'[number of items per page]:number:'
177
191
  ;;
@@ -206,7 +220,7 @@ complete -c spoti -s h -l help -d 'Display help'
206
220
  complete -c spoti -s V -l version -d 'Display version'
207
221
 
208
222
  function __spoti_needs_command
209
- not __fish_seen_subcommand_from setup login logout status config interactive now open launch lyrics pause resume next previous devices device seek restart volume queue shuffle repeat album artist playlists playlist-create add playlist liked like unlike recent update search play completion i p pa r np ly q s vol dev devs pl pls rep rec n prev sk rst app alb art
223
+ not __fish_seen_subcommand_from setup login logout status config interactive now open launch lyrics pause resume next previous devices device seek restart volume queue shuffle repeat album artist playlists playlist-create playlist-edit playlist-move add playlist liked like unlike recent update search play completion i p pa r np ly q s vol dev devs pl pls rep rec n prev sk rst app alb art
210
224
  end
211
225
  complete -c spoti -n __spoti_needs_command -a setup -d 'Save your Spotify application client ID'
212
226
  complete -c spoti -n __spoti_needs_command -a login -d 'Log in to Spotify'
@@ -234,6 +248,8 @@ complete -c spoti -n __spoti_needs_command -a album -d 'Search for an album'
234
248
  complete -c spoti -n __spoti_needs_command -a artist -d 'Search for an artist'
235
249
  complete -c spoti -n __spoti_needs_command -a playlists -d 'Browse and optionally play your playlists'
236
250
  complete -c spoti -n __spoti_needs_command -a playlist-create -d 'Create a Spotify playlist'
251
+ complete -c spoti -n __spoti_needs_command -a playlist-edit -d 'Edit the details of a playlist you own'
252
+ complete -c spoti -n __spoti_needs_command -a playlist-move -d 'Move a track within a playlist you own'
237
253
  complete -c spoti -n __spoti_needs_command -a add -d 'Add the current or a searched track to a playlist'
238
254
  complete -c spoti -n __spoti_needs_command -a playlist -d 'Show a playlist'
239
255
  complete -c spoti -n __spoti_needs_command -a liked -d 'Browse and optionally play liked tracks'
@@ -255,6 +271,10 @@ complete -c spoti -n '__fish_seen_subcommand_from queue q album alb artist art p
255
271
  complete -c spoti -n '__fish_seen_subcommand_from add' -l first -d 'Select first matches without prompting'
256
272
  complete -c spoti -n '__fish_seen_subcommand_from add' -l search -r -d 'Search for a track to add'
257
273
  complete -c spoti -n '__fish_seen_subcommand_from playlist-create' -l public -d 'Make the playlist public'
274
+ complete -c spoti -n '__fish_seen_subcommand_from playlist-edit' -l name -r -d 'Set the playlist name'
275
+ complete -c spoti -n '__fish_seen_subcommand_from playlist-edit' -l description -r -d 'Set the playlist description'
276
+ complete -c spoti -n '__fish_seen_subcommand_from playlist-edit' -l public -d 'Make the playlist public'
277
+ complete -c spoti -n '__fish_seen_subcommand_from playlist-edit' -l private -d 'Make the playlist private'
258
278
  complete -c spoti -n '__fish_seen_subcommand_from playlists pls liked recent rec' -s l -l limit -r -d 'Number of items per page'
259
279
  complete -c spoti -n '__fish_seen_subcommand_from search s' -s l -l limit -r -d 'Maximum number of results'
260
280
  complete -c spoti -n '__fish_seen_subcommand_from device dev' -l default -d 'Save this device as the playback fallback'
@@ -1 +1 @@
1
- {"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/ui/completions.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEtB,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwIrB,CAAC;AAEF,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
  "name": "@bzenky/spoti",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "A local-first command-line client for controlling Spotify",
5
5
  "type": "module",
6
6
  "bin": {