pnxtech / hydra-cli

Hydra Command Line Client
MIT License
12 stars 9 forks source link

Ability to manage multiple redis configs #9

Open cjus opened 7 years ago

cjus commented 7 years ago

Update the config command to support a name

$ hydra-cli config dev
$ hydra-cli config prod

Remove config list command and add show-config:

$ hydra-cli show-config dev

Using show-config without a name dumps the .hydra-cli environments branch.

Add a switch-config command:

$ hydra-cli switch-config dev
cjus commented 7 years ago
{
   "redisUrl":"127.0.0.1",
   "redisPort":"6379",
   "redisDb":"15",
   "environments":{
      "default":{
         "redisUrl":"127.0.0.1",
         "redisPort":"6379",
         "redisDb":"15"
      },
      "prod":{
         "redisUrl":"53.23.33.12",
         "redisPort":"6379",
         "redisDb":"15"
      }
   }
}