CLI functionality #7

Closed
opened 2019-05-13 22:57:53 -04:00 by kdeng00 · 0 comments
kdeng00 commented 2019-05-13 22:57:53 -04:00 (Migrated from github.com)

Implement CLI (Command Line Interface) functionality prior to implementing the UI. The CLI functionality will have all of the functionalties of the UI without having the UI to be displayed. The CLI will be triggered via flags and by default the UI will be appear unless otherwise specified.

idm [Action] [flags]

Actions

  • retrieve - used for printing metadata. If the -f and -o flags are provided then it will output to a file with a specified format. Json will only be supported at the moment
  • upload - used for uploading mp3 songs. Requires the -h and -s flags
  • download - used for downloading mp3 songs. Requires the -h and -d flags
  • delete - used for deleting mp3 songs from the server. Requires the -h flag

flags

  • -u username optional if stored token has not expired. Requires -p flag
  • -p password optional if stored token has not expired. Requires -u flag
  • -t use true, false, 1, 0. If true then a new token will be generated and will replace the current one. If false then it will use the current token. If current token has expired and the value is false then a new token will replace the former one. This flag requires -u and -p flags
  • -h Base API HTTP endpoint
  • -s source mp3 path. Required with upload action
  • -d path to download mp3. Required with download action
Implement CLI (Command Line Interface) functionality prior to implementing the UI. The CLI functionality will have all of the functionalties of the UI without having the UI to be displayed. The CLI will be triggered via flags and by default the UI will be appear unless otherwise specified. `` idm [Action] [flags] `` ### Actions * ~~retrieve - used for printing metadata. If the -f and -o flags are provided then it will output to a file with a specified format. Json will only be supported at the moment~~ * upload - used for uploading mp3 songs. Requires the -h and -s flags * download - used for downloading mp3 songs. Requires the -h and -d flags * delete - used for deleting mp3 songs from the server. Requires the -h flag ### flags * -u username optional if stored token has not expired. Requires -p flag * -p password optional if stored token has not expired. Requires -u flag * ~~-t use true, false, 1, 0. If true then a new token will be generated and will replace the current one. If false then it will use the current token. If current token has expired and the value is false then a new token will replace the former one. This flag requires -u and -p flags~~ * -h Base API HTTP endpoint * -s source mp3 path. Required with upload action * -d path to download mp3. Required with download action
Sign in to join this conversation.