https://github.com/blaugold/cli_launcher
CLI development utility to support launching of locally installed versions.
https://github.com/blaugold/cli_launcher
cli dart
Last synced: 10 months ago
JSON representation
CLI development utility to support launching of locally installed versions.
- Host: GitHub
- URL: https://github.com/blaugold/cli_launcher
- Owner: blaugold
- License: mit
- Created: 2022-09-21T19:35:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T17:35:01.000Z (over 3 years ago)
- Last Synced: 2025-04-17T07:17:00.891Z (about 1 year ago)
- Topics: cli, dart
- Language: Dart
- Homepage: https://pub.dev/packages/cli_launcher
- Size: 34.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/blaugold/cli_launcher/actions/workflows/ci.yaml)
[](https://pub.dev/packages/cli_launcher)
CLI development utility to support launching locally installed versions.
When the globally installed version of a CLI is launched and it finds a locally
installed version of itself that is a different version, it will launch the
locally installed version.
Otherwise, the globally installed version will continue to run.
Installing means adding the package that contains the CLI executable to a
pubspec.yaml file.
To find the locally installed version, the globally installed version will
search for a pubspec.yaml file in the current directory or any parent directory.
If it finds one, it will look for a dependency on the package that contains the
CLI executable.
In addition, if the CLI is executed in the package that contains the CLI
executable, the current version in that package will be launched. This is useful
for development.