Skip to content

Commit be2c1f8

Browse files
author
Kalybos
committed
planned features added
1 parent a2b3fdb commit be2c1f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1199
-219
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@
2323
- Refactored code structure for improved maintainability
2424
- Updated example package structure
2525
- Modified the env package generation's command
26+
27+
## 1.1.3
28+
29+
- `--output-dir`: Custom output directory (default: `env`)
30+
- `--no-encrypt`: Skip encryption of sensitive variables
31+
- `--verbose`: Detailed output during build process

README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ Install the CLI globally using pub:
2626
dart pub global activate env_builder_cli
2727
```
2828

29-
Or using the executable name:
30-
31-
```bash
32-
dart pub global activate env_builder
33-
```
34-
3529
### Local Installation
3630

3731
Add to your `pubspec.yaml`:
@@ -73,17 +67,20 @@ Generates environment packages from `.env` files:
7367
env_builder build
7468

7569
# Build with specific environment files
76-
env_builder build --env-file=.env.dev,.env.prod
70+
env_builder build --env-file=.env.development,.env.production,.env.staging
7771

78-
# Build with custom output directory
72+
# Build with custom output directory (default: env)
7973
env_builder build --output-dir=custom_env
8074

75+
# Skip encryption of sensitive variables
76+
env_builder build --no-encrypt
77+
78+
# Show detailed output during build process
79+
env_builder build --verbose
80+
8181
```
8282

8383
**Planned Features:**
84-
- `--output-dir`: Custom output directory (default: `packages/env`)
85-
- `--no-encrypt`: Skip encryption of sensitive variables
86-
- `--verbose`: Detailed output during build process
8784
- **Complex Data Types Support**: Handle JSON-like strings (e.g., `APP_CONFIG={"theme":"dark","features":["chat","notifications"]}`)
8885
- `--config-env-file`: Specify a default configuration file for environment-specific settings
8986

@@ -217,7 +214,7 @@ To run the example:
217214
cd example
218215
flutter pub get
219216
# The .env file already exists
220-
env_builder build --env-file=.env
217+
env_builder build
221218
flutter run
222219
```
223220

bin/env_builder_cli.aot

2.33 MB
Binary file not shown.

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class _MyHomePageState extends State<MyHomePage> {
3939

4040
// Just to simulate the use of EnvValue
4141
void createUser(EnvValue env) {
42-
final url = env(Env.createUserUrl);
42+
// final url = env(Env.createUserUrl);
4343
final baseUrl = env(Env.baseUrl);
4444

45-
print('Response: $baseUrl$url');
45+
print('Response: $baseUrl');
4646
}
4747

4848
@override
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
.flutter-plugins-dependencies
30+
/build/
31+
/coverage/
32+
33+
# Dart & Flutter
34+
.dart_tool/
35+
.packages
36+
.pub-cache/
37+
build/
38+
coverage/
39+
40+
# VS Code
41+
.vscode/
42+
43+
# IntelliJ / Android Studio
44+
*.iml
45+
.idea/
46+
*.iws
47+
*.ipr
48+
*.bak
49+
50+
# Logs and locks
51+
*.log
52+
*.lock
53+
pubspec.lock
54+
55+
# Env files (do not commit secrets)
56+
.env
57+
.env.*
58+
!.env.example
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "adc901062556672b4138e18a4dc62a4be8f4b3c2"
8+
channel: "stable"
9+
10+
project_type: package
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--
2+
This README describes the package. If you publish this package to pub.dev,
3+
this README's contents appear on the landing page for your package.
4+
5+
For information about how to write a good package README, see the guide for
6+
[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
7+
8+
For general information about developing packages, see the Dart guide for
9+
[creating packages](https://dart.dev/guides/libraries/create-packages)
10+
and the Flutter guide for
11+
[developing packages and plugins](https://flutter.dev/to/develop-packages).
12+
-->
13+
14+
TODO: Put a short description of the package here that helps potential users
15+
know whether this package might be useful for them.
16+
17+
## Features
18+
19+
TODO: List what your package can do. Maybe include images, gifs, or videos.
20+
21+
## Getting started
22+
23+
TODO: List prerequisites and provide or point to information on how to
24+
start using the package.
25+
26+
## Usage
27+
28+
TODO: Include short and useful examples for package users. Add longer examples
29+
to `/example` folder.
30+
31+
```dart
32+
const like = 'sample';
33+
```
34+
35+
## Additional information
36+
37+
TODO: Tell users more about the package: where to find more information, how to
38+
contribute to the package, how to file issues, what response they can expect
39+
from the package authors, and more.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)