Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use application environment for default options #122

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

fhunleth
Copy link
Member

This makes it possible to just run NervesMOTD.print to get the
complete customized version of the MOTD. This is nice when there's
something that NervesMOTD shows and you just want to see it again
without reconnecting.

Any option that can be given to NervesMOTD.print can be specified in
the Application environment for :nerves_motd. Options passed to
print/1 take precendence like you'd expect.

This makes it possible to just run `NervesMOTD.print` to get the
complete customized version of the MOTD. This is nice when there's
something that NervesMOTD shows and you just want to see it again
without reconnecting.

Any option that can be given to `NervesMOTD.print` can be specified in
the Application environment for `:nerves_motd`. Options passed to
`print/1` take precendence like you'd expect.
@fhunleth fhunleth requested a review from mnishiguchi May 10, 2023 03:03
@mnishiguchi mnishiguchi merged commit 1aaf97f into main May 10, 2023
@mnishiguchi mnishiguchi deleted the application-env branch May 10, 2023 12:42
@mnishiguchi mnishiguchi mentioned this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants