osl-incubator / sugar

Simplify the usage of containers
https://osl-incubator.github.io/sugar/
BSD 3-Clause "New" or "Revised" License
7 stars 8 forks source link

get the group information from an environment variable #70

Closed xmnlab closed 1 year ago

xmnlab commented 1 year ago

We need a way to get the group information from an environment variable, so user don't need to specify the --group in the CLI.

if the group information is not specified, the --group in the CLI would be mandatory.

Idea:

The default environment variable for that would be: SUGAR_GROUP_NAME but the user can specify a custom environment variable name, for example:

version: 1.0.0
config:
  env:
    SUGAR_GROUP_NAME: ENV

it looks bit extensive/verbose in this way .. but it would be easy to extend for other custom configuration in the future

xmnlab commented 1 year ago

additionally, if the corresponding environment variable is present (the default or the custom one), it should be displayed in the help text as an information, something like:


Note: Default services' group: <the value from the environment variable>
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: