You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance the ExportCommand functionality in the CLI by introducing two new optional flags: --prefix and --suffix. These flags will allow users to append a fixed string to the beginning (--prefix) or end (--suffix) of each Config Key in the export result.
In the above example, if we have a Config Key named DATABASE_URL, the export result would transform it into MYAPP_DATABASE_URL_PROD. This functionality is particularly useful when different environments or systems require specific naming conventions for configuration keys.
Motivation
The addition of --prefix and --suffix flags will provide users with greater control over the format of their exported configuration keys, making it easier to adapt the output for different deployment environments or system requirements.
prefix: Flags.string({description: `Append a fixed string to the beginning of each Config Key in the export result`,}),suffix: Flags.string({description: `Append a fixed string to the end of each Config Key in the export result`,}),
The text was updated successfully, but these errors were encountered:
Create function keysMutations -> this func will return undefined if no --prefix or --suffix is requested or (key:string)=>string otherwise.
Add keys:keysMutations() to ExportCommand params
Update docs (if necessary)
Questions / Requests
Notes / Comments / Additional
Important Trying to set the --prefix to 'H' show the command help. To bypass this we must use =. eg configu export --prefix=h @RichardAkman | @rannn505 | @pelegpor
As requested by @rannn505, Casing will apply last. Including the prefix and suffix
Suggestion
Enhance the
ExportCommand
functionality in the CLI by introducing two new optional flags:--prefix
and--suffix
. These flags will allow users to append a fixed string to the beginning (--prefix
) or end (--suffix
) of each Config Key in the export result.Example Usage:
In the above example, if we have a Config Key named
DATABASE_URL
, the export result would transform it intoMYAPP_DATABASE_URL_PROD
. This functionality is particularly useful when different environments or systems require specific naming conventions for configuration keys.Motivation
The addition of
--prefix
and--suffix
flags will provide users with greater control over the format of their exported configuration keys, making it easier to adapt the output for different deployment environments or system requirements.Context
connected to #333
The text was updated successfully, but these errors were encountered: