env2dart 0.1.0 env2dart: ^0.1.0 copied to clipboard
A simple way to generate `dart` code from a `.env` file.
Env2dart #
English | 简体中文
A simple way to generate dart
code from a .env
file.
Quick Start #
- Install the command-line tool:
dart pub global activate env2dart
- Execute the following command in your project directory:
env2dart
Command-line Arguments #
-p, --path Specify working directory, the CLI will look for the .env file in the current directory.
(defaults to "./")
-o, --output Specify the output file path.
-a, --active Specify the environment variables to use. For example, if -active prod is specified, the CLI will look for the .env.prod file and merge it with the .env file.
-c, --class Specify the name for the generated class
(defaults to "Env")
-h, --help View help options.