blindzero/Connect-MS365

User configuration file

Closed this issue · 4 comments

Is your feature request related to a problem? Please describe.
For some features (#21, #8 or #22) it will be good to have a user-space configuration file.

Describe the solution you'd like

  • JSON (?) based configuration file for user-based settings, as
    • #21 Support CSP connections
    • #8 hosting environments (may be different / relatively static)
    • #22 Proxy support
    • Azure certificate / ServicePrincipals
    • default org for SharePoint Online
    • ...

Additional context

  • Where to store user based if module is system-wide?
  • Removing when uninstalling module?
  • Init if not existing by template?
M1kep commented

If adding a dependency is an option then I believe PSFrameWork has a good configuration system or one of the other config projects out there

Plan

realized

  • $env:LOCALPPDATA\Connect-MS365\Connect-MS365.Config.psd1
  • initialized if not available
  • switch to reinitializeconfig
  • read config

PSD1 file over XML / json as commentable and better readable
not using any framework as too many drawbacks

realized in 1.3.0