Skip to content

docs(guide): add env guide#121

Merged
lcsmuller merged 1 commit intoCogmasters:masterfrom
ThePedroo:docs/env-variables-guide
Oct 19, 2022
Merged

docs(guide): add env guide#121
lcsmuller merged 1 commit intoCogmasters:masterfrom
ThePedroo:docs/env-variables-guide

Conversation

@ThePedroo
Copy link
Contributor

@ThePedroo ThePedroo commented Oct 13, 2022

Notice

  • I understand the code that I have edited, and have the means
    to test it before making changes to Concord.

What?

Adding the "Setting up with env variables" guide.

Why?

Because it was requested on issue 109.

@ThePedroo ThePedroo force-pushed the docs/env-variables-guide branch from 7b135eb to b297e4b Compare October 15, 2022 17:38
@lcsmuller lcsmuller added the documentation Improvements or additions to documentation label Oct 15, 2022
@Anotra
Copy link
Contributor

Anotra commented Oct 18, 2022

env vars are also supported in the init functions discord_init("${ENV}/file");

@ThePedroo
Copy link
Contributor Author

Is there a place saying how to use it and giving details of it so I can include on it?
I didn't really found any to include it, sorry

Copy link
Collaborator

@HackerSmacker HackerSmacker left a comment

Choose a reason for hiding this comment

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

Alright, I mentioned a few things that you probably want to change, and added a ksh and Bash style example.

@ThePedroo ThePedroo force-pushed the docs/env-variables-guide branch 4 times, most recently from cae6b75 to fcd9d0c Compare October 19, 2022 02:41
@ThePedroo
Copy link
Contributor Author

Done @Anotra, I've just added an example of how to retrieve the value of an env variable in the discord(_config)_init. Are you able to review it? It would be awesome

Adding the "env vars with concord" guide.

References Cogmasters#109
Co-authored-by: Lucas Müller <lucas@muller.codes>
Co-authored-by: HackerSmacker
@ThePedroo ThePedroo force-pushed the docs/env-variables-guide branch from fcd9d0c to ecf8f12 Compare October 19, 2022 22:17
@lcsmuller lcsmuller merged commit e8756a8 into Cogmasters:master Oct 19, 2022
@ThePedroo ThePedroo deleted the docs/env-variables-guide branch February 5, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants