cli_pkg
2.16.1, released 9 days ago by sass-lang.com
Grinder tasks for releasing Dart CLI packages.
What it does
Provides a set of Grinder tasks that automate releasing Dart command-line applications to various channels like GitHub releases, npm, Homebrew, and pub.dev. It handles creating standalone archives and integrates with CI environments.
AI-written summary of version 2.16.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building and releasing a Dart command-line application.
- You want to automate publishing to GitHub releases, npm, Homebrew, and pub.dev using Grinder.
Skip it when
- You are developing a Flutter mobile or desktop UI application rather than a Dart CLI app.
- You do not use Grinder for task running.
Strengths
- Simplifies multi-channel distribution for CLI apps.
- Highly configurable with top-level ConfigVariables.
Weaknesses
- Tied strictly to the Grinder task runner ecosystem.
- Limited applicability outside of Dart CLI packaging.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 25
Import package:cli_pkg/cli_pkg.dart and call pkg.addAllTasks() before grind(args) in your grinder script.
import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';
void main(List<String> args) {
pkg.addAllTasks();
grind(args);
}Works with
Packages commonly used together with cli_pkg: ones it builds on, ones built on it, and its own family.
- archivecli_pkg depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- yamlcli_pkg depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptocli_pkg depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semvercli_pkg depends on itVersions and version constraints implementing pub's versioning policy.
- xmlcli_pkg depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- globcli_pkg depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- package_configcli_pkg depends on itRead and write Dart package configuration files.
- poolcli_pkg depends on itManage a finite pool of resources to control concurrent operations.