Skip to content

Conversation

@dgw
Copy link
Member

@dgw dgw commented Jun 28, 2020

Description

We had a couple spots in the documentation that mentioned the SOPEL_CONFIG var in passing, but no real documentation about it or the ability to override individual settings with envvars.

Now we'll have a whole section (in the CLI chapter) about all supported environment variables.

This is forked off of #1900's WIP branch, so the first commit can be ignored for now. (GitHub may hide it from this PR once #1900 is merged, if its smarts hold up.)

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

dgw added 2 commits June 27, 2020 18:59
Guidance also applies to accessing config attributes *as attributes*, so
it's not a bad idea to have anyway.

Also added explicit directions for the highly unlikely case where two
plugins somehow manage to define two differently named config sections
which, when combined with certain keys, collide when converted to the
`env_name` format.

Again, *highly* unlikely. But putting the naming guidance in also lays
the foundation for (possibly) adding dot-delimited envvar name support
(on platforms where they work) in a future release.
@dgw dgw added this to the 7.1.0 milestone Jun 28, 2020
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just one suggestion, but I'm not sure if it makes sense or not. I leave that to you.

@dgw dgw force-pushed the document-env-vars branch from 63f3295 to 860dce5 Compare July 5, 2020 19:46
@dgw
Copy link
Member Author

dgw commented Jul 5, 2020

Totally forgot to come back to this after merging #1900 the other day. 😅

@dgw dgw marked this pull request as ready for review July 5, 2020 19:46
@dgw dgw requested a review from Exirel July 5, 2020 19:46
@dgw dgw merged commit a5a6e2d into master Jul 6, 2020
@dgw dgw deleted the document-env-vars branch July 6, 2020 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants