sidekick_core
3.1.1, released 10 months ago by phntm.xyz
Shared sidekick commands, plugin engine, migrations, templates, and utilities for custom CLIs.
What it does
Provides shared commands, a plugin engine, migrations, and utilities for building customized project-scoped Dart CLIs. It includes prebuilt commands like analysis, formatting, dependency updates, and plugin management.
AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a custom project-specific sidekick CLI in Dart
- You want to share repetitive CLI tasks across your team using Dart commands instead of Bash scripts
Skip it when
- You are building a standard mobile, web, or desktop user-facing application
- You do not need a custom project CLI generator
Strengths
- Replaces complex bash scripts with testable and debuggable Dart code
- Includes a rich set of prebuilt commands and an extensible plugin system
Weaknesses
- Requires using the sidekick ecosystem and generator
- Major versions introduce breaking changes to core command execution
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 15
Activate the sidekick generator globally via pub and run sidekick init in your project directory.
import 'package:sidekick_core/sidekick_core.dart';
Future<void> main(List<String> args) async {
final runner = initializeSidekick(mainProjectPath: 'dev/integration_tests/flutter_gallery');
runner.addCommand(YourCommand());
runner.addCommand(SidekickCommand());
return await runner.run(args);
}Alternatives
Packages that do the same job and could replace sidekick_core.
- shared_versions
A CLI tool to share and synchronize versions for multiple packages in Flutter.
37Compare
Works with
Packages commonly used together with sidekick_core: ones it builds on, ones built on it, and its own family.
- yamlsidekick_core depends on itA Dart library for parsing YAML documents into Dart data structures.
- pub_semversidekick_core depends on itVersions and version constraints implementing pub's versioning policy.
- globsidekick_core depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- pubspec_parsesidekick_core depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- argssidekick_core depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- win32sidekick_core depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- yaml_editsidekick_core depends on itYAML manipulation library preserving comments and whitespace
- recasesidekick_core depends on itChanges the case of input text to various conventions.