cli_launcher
0.3.4+1, released 4 weeks ago by gabriel.terwesten.net
Utility to launch a locally installed version of a CLI when a global version is invoked.
What it does
When a globally installed CLI runs, it checks for a matching package in the current or parent directories. If a different local version is found, it relaunches the CLI using that local version, otherwise it continues with the global one.
AI-written summary of version 0.3.4+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Developing a Dart CLI that may be installed globally and locally
- Ensuring the correct version of a CLI runs during development or CI
Skip it when
- You only need a single installation path for your CLI
- The CLI is not distributed via pub packages
Strengths
- Automatically resolves version mismatches
- Works with Dart 3.14 and newer
- No extra build steps required
Weaknesses
- Limited to Dart CLI packages
- Only supports launch logic, no other features
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:cli_launcher/cli_launcher.dart';
void main(List<String> args) => launchExecutable(args);Alternatives
Packages that do the same job and could replace cli_launcher.
Works with
Packages commonly used together with cli_launcher: ones it builds on, ones built on it, and its own family.
- yamlcli_launcher depends on itA Dart library for parsing YAML documents into Dart data structures.
- melosBuilt on cli_launcherA tool for managing Dart and Flutter monorepos with script execution, versioning, and publishing.
- openapi_generator_cliBuilt on cli_launcherA Dart CLI wrapper around openapi-generator to generate API client code.
- dacoBuilt on cli_launcherA tool for maintaining Dart documentation comments and formatting embedded code examples.