vulcano icon indicating copy to clipboard operation
vulcano copied to clipboard

Add profile support

Open dgarana opened this issue 5 years ago • 1 comments

Would be nice being able to select different profiles, with different settings. So the user can choose one profile and be able to access all its properties.

Notes:

  • This shouldn't be mandatory for creating an application (we may need to start thinking about middlewares or plugins feature)
  • It should use ABCMeta to be implemented on the properties class, doing this, we could be able to generate a bunch of ways to retrieve these profiles (mongodb, yaml file, config parser... etc)
  • If the profile is enabled, before starting the application we should show a menu to select between all profiles available.
  • The profile could be passed as a parameter in both modes: cli and repl, doing so if the user specifies the profile and no command, the select profile menu won't be shown.

dgarana avatar Mar 03 '19 18:03 dgarana

Consider using a wrapper for managing the profile selector. One of them could be: https://python-prompt-toolkit.readthedocs.io/en/master/pages/dialogs.html#button-dialog

dgarana avatar Mar 03 '19 23:03 dgarana