define_env 0.4.0 copy "define_env: ^0.4.0" to clipboard
define_env: ^0.4.0 copied to clipboard

Load variables from a `.env` file into a dart-define string and copy it to your IDE Config or to the clipboard.

example/README.md

Usage #

Copy the .env.example file to .env

cp .env.example .env

Then run any of the following

Running dart pub global run define_env here should generate --dart-define=APP_TYPE=Staging --dart-define=APP_NAME="My App Staging"

Copy dart-define string #

Running dart pub global run define_env -c here should generate --dart-define=APP_TYPE=Staging --dart-define=APP_NAME="My App Staging" and copy the same to clipboard

Copy dart-define to launch.json #

Running dart pub global run define_env -l here should generate --dart-define=APP_TYPE=Staging --dart-define=APP_NAME="My App Staging" and copy the dart defines to the args section in launch.json in list format

Running dart pub global run define_env -l -n "My App" here should generate --dart-define=APP_TYPE=Staging --dart-define=APP_NAME="My App Staging" and copy the dart defines to the args section for "My App" config in launch.json in list format

19
likes
130
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

Load variables from a `.env` file into a dart-define string and copy it to your IDE Config or to the clipboard.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, checked_yaml, code_builder, console, dart_style, dotenv, json_annotation, recase, xml, yaml

More

Packages that depend on define_env