Stremio / stremio-beamup

🛠️ A platform as a service (PaaS) hosting for Stremio addons: as easy a Heroku, without the restrictions
MIT License
24 stars 7 forks source link

Allow Setting Defaults #22

Closed jaruba closed 4 years ago

jaruba commented 4 years ago

Scenario

The current proposed command is ./cli/beamup <beamup deployer hostname> add-remote <github username> <addon name>

IMO this is an issue, as addon devs will always need to search for the hostname and add their github user every time they initiate a new addon.

Proposed Solution

beamup --set-server <hostname> --set-user <github user> to set both the server and user as the default for all future use.

jaruba commented 4 years ago

Another thought I have about this is that we could save this data in JSON, example:

{
  "server": "...",
  "github": "..."
}

We could use beamup --set-server <hostname> --set-user <github user> to create a global beamup.json, but also allow creating a beamup.json in the project folder (that users will want to deploy) to allow setting per project settings.

The good thing about this is that it's scalable to any number of future settings we might add.

jaruba commented 4 years ago

Further thoughts:

jaruba commented 4 years ago

My final thoughts on this:

This should make it as simple as just using beamup to deploy, or init, or even config, as this one command will handle all possible scenarios.

jaruba commented 4 years ago

A separate project has been built for this purpose: beamup-cli