Skip to content

Add --env-file to silverback run and silverback worker #247

@fubuloubu

Description

@fubuloubu

Overview

Since a bot can occasionally require environment variables to function, it would be nice to include an --env-file PATH flag on silverback run and silverback worker so that we can pre-load the environment variables before starting the command.

Specification

--env-file should allow multiple PATHs and load prior to the bot object callback so that any SILVERBACK_* variables can also take effect

Loading the file could use https://pypi.org/project/python-dotenv/ as that is a pretty standard package used to support this type of feature

Dependencies

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions