shpotify icon indicating copy to clipboard operation
shpotify copied to clipboard

Version command

Open ericmarkmartin opened this issue 8 years ago • 6 comments

For the sake of debugging and compliance with CLI standards, a version command of some sort should be included in the shpotify API.

Possible ideas for the command syntax (multiple different syntaxes can be used):

  • spotify -V
  • spotify -v
  • spotify --version
  • spotify version

ericmarkmartin avatar Sep 18 '16 21:09 ericmarkmartin

I like spotify -v and spotify --version.

tpritc avatar Sep 18 '16 21:09 tpritc

Agree with @tpritc.

hnarayanan avatar Sep 18 '16 21:09 hnarayanan

I also agree with @tpritc: they are the most standard and thus the most predictable.

ericmarkmartin avatar Sep 18 '16 21:09 ericmarkmartin

Essentially I'm debating whether to go with the simple version output (like Python):

$ python --version
Python 3.4.3

Or something with a license and other info:

$ bash --version
GNU bash, version 4.3.46(1)-release (x86_64-apple-darwin14.5.0)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I'm probably overthinking this, but I would rather just get it right the first time. What do you guys think about this?

In the meantime I'll just post a PR with a simple version command, and if that's what you guys want, we can merge and be done with this issue.

ericmarkmartin avatar Sep 23 '16 02:09 ericmarkmartin

Added PR #64

ericmarkmartin avatar Sep 23 '16 03:09 ericmarkmartin

Still reeling from the last flurry of commits and the release. Will get to this in time.

hnarayanan avatar Sep 23 '16 07:09 hnarayanan