Thank you for contributing to envflare_cli! This guide explains how to set up the project locally, make contributions, and submit improvements.
- Dart SDK
>=3.4.0 <4.0.0 melosinstalled globally if you want mono-repo tooling
From the repository root:
dart pub getIf you use Melos:
melos bootstrapdart run bin/envflare.dart --helpdart doc .Keep code formatted with:
dart format .- Add a new command under
lib/commands/. - Implement
BaseCommandinlib/commands/base_command.dart. - Export the new command from
lib/commands/index.dart. - Register the command in the command registry if needed.
- Add or update DartDoc comments for public APIs.
- Put reusable business logic in
lib/core/. - Keep CLI parsing inside
lib/cli/or command classes. - Raise user-facing errors with
CliException. - Use
Loggerfor standard output messages.
There are currently no dedicated tests in this repo, so manual validation is important.
Run the CLI directly for the commands you change:
dart run bin/envflare.dart <command>Example:
dart run bin/envflare.dart init- Update
pubspec.yamlversion when preparing a new release. - Update
CHANGELOG.mdmanually using the preferred minimal style. - Use commit messages that describe the change clearly.
- Fork the repository.
- Create a branch for your fix or feature.
- Make your changes and verify locally.
- Update documentation or changelog if needed.
- Submit a pull request with a clear description.
- Keep changes focused and small.
- Prefer simple, maintainable solutions.
- Document public APIs and critical logic clearly.
- If you change command behavior, update examples or usage notes.
Thank you for helping improve envflare_cli!