Skip to content

Commit

Permalink
feat: allow reading System env key from .env files (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeiffer authored Dec 16, 2024
1 parent d557a3b commit f3bdd37
Show file tree
Hide file tree
Showing 14 changed files with 376 additions and 96 deletions.
1 change: 1 addition & 0 deletions examples/envied_example/lib/constant_case_env.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/envied_example/lib/debug_env.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/envied_example/lib/env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:example/example_enum.dart';

part 'env.g.dart';

@Envied(path: '.env')
@Envied(requireEnvFile: true)
final class Env {
@EnviedField(varName: 'KEY1')
static const String key1 = _Env.key1;
Expand Down
1 change: 1 addition & 0 deletions examples/envied_example/lib/env.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/envied_example/lib/nullable_env.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/envied_example/lib/release_env.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f3bdd37

Please sign in to comment.