-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved CLI support to pass API key & Device Id #62
Comments
I would like to take this up |
I think the API key can be exported as an environment variable rather than providing it every time with |
@ashwani99 What are you saying exactly? Do you want to remove |
@Parth-Vader No, |
@ashwani99 @Parth-Vader Sorry, I have been busy over the weekend and I couldn't participate in the discussion. @ashwani99 I think we should either have support to send the API & device through |
@rajula96reddy I think you misunderstood me here. I meant the user can export the api key as The flow will be something like this: # setting API key
$ export PUSHBULLET_API_KEY=<key>
# choosing device
$ moboff initialise
1 : device 1
2 : device 2
2
Please Select a directory for store the Downloads
The music would be downloaded to <chosen-path>
Now you can run `moboff download` :)
# setting a new default device
$ moboff download --newdevice 1 <link> |
@ashwani99 Sorry! My bad. Yes! This is a good idea. I think we might have to change the core parts of the code, so I would say let's ask @Parth-Vader's opinion on this. @Parth-Vader can @ashwani99 go ahead make these changes? |
@ashwani99 I will tell you why I prefer how the current You set the API key (which is meant to not change a lot), and it gets stored in a config file. It's the same as saving it in the environment value since the process of updating both is the same. It's also a good idea to set a default device, but as an additional feature, the user can provide a new device if he wants to: this is also supposed to be rare for the user. I agreed that Do note that the name initialise was chosen because it is required to run only once. |
@Parth-Vader Thanks for the use-case overview. Do you still want |
I would prefer closing this @ashwani99 @rajula96reddy |
We need to improve the CLI support for
moboff initialise
&moboff download
in such a way that, we should be able to initialise usingmoboff initialize --api <key> --device <device_id>
ormoboff download --api <key> --device <device_id> --link <link>
This will come in handy in #60 & #61
The text was updated successfully, but these errors were encountered: