GetStream / stream-cli

Configure & manage Stream applications from the command line. 🚀
https://yarnpkg.com/en/package/getstream-cli
BSD 3-Clause "New" or "Revised" License
85 stars 19 forks source link

Add Config tree commands #75

Closed yaziine closed 2 years ago

yaziine commented 2 years ago

This PR adds commands to manage configuration:

An app configuration is represented by:

The first new added configuration will be considered as the default one, this can be change with the default command.

peterdeme commented 2 years ago

LGTM

ferhatelmas commented 2 years ago

probably a good moment to add some linting, CI/CD to the project in the next iteration

please create issues for this kind of items and move on

yaziine commented 2 years ago

please create issues for this kind of items and move on

yep already done https://github.com/GetStream/chat/issues/3335

ferhatelmas commented 2 years ago

How is deleting a default app config supposed to be working? Since we clear default, are we making config invalid at this stage or are we going to take first if default is missing since apps is a list, that makes sense to me.

yaziine commented 2 years ago

How is deleting a default app config supposed to be working? Since we clear default, are we making config invalid at this stage or are we going to take first if default is missing since apps is a list, that makes sense to me.

Thanks for asking. Here is how I see it:

ferhatelmas commented 2 years ago

Here is how I see it

Sounds good, explicit

ferhatelmas commented 2 years ago

merging this so that @peterdeme can continue