Backbase / bb-cli

Command line tools for working with Backbase CXP.
Other
33 stars 19 forks source link

Add ability to have multiple profiles in the .bbrc #137

Closed dmitrisweb closed 8 years ago

dmitrisweb commented 8 years ago

Example of .bbrc file:

{
    "scheme": "http",
    "host": "localhost",
    "context": "portalserver",
    "port": "80",
    "username": "admin",
    "password": "admin",
    "profiles": {
        "dev": {
            "host": "winter-water-81-dbp.backbase.dev"
        }
    }
}

Profile properties will be merged to the root level properties.

Usage: bb import-item --profile=dev

or save it as environment variable: export BBPROFILE=dev

and use without using profile flag: bb import-item

salvitas commented 8 years ago

niceee!! i have been wanting to do that for some time but never found time to do it ;)

dmitrisweb commented 8 years ago

@igord can you pls review and merge?