mono_cli 0.0.8
mono_cli: ^0.0.8 copied to clipboard
CLI exports and implementations for the Mono CLI, used by the mono package.
0.0.8 #
- Breaking: Replaced
packages/projectswithdart_projectsandflutter_projectsmaps inmono.yaml(loader, writer, workspace IO updated). - Writer: Generated
mono.yamlnow includes section comments and short examples for easier editing. - Workspace: Project cache no longer uses
monocfg/mono_projects.yaml; reads/writes from rootmono.yaml.
0.0.7 #
- New:
PrettyLoggerwith configurable colors/icons/timestamp and CLI flags--color/--no-color,--icons/--no-icons,--timestamp/--no-timestamp. - Added YAML
loggersection support in loader and schema. - Centralized config defaults and canonical writer (
defaultConfig,toYaml,normalizeRootConfig). - New config spec constants/enums:
SectionKeys,OptionKeys,DefaultOrder,Concurrency. - Workspace config:
writeRootConfigIfMissingandwriteRootConfigNormalizednow generate YAML from defaults (no hardcoded templates).
0.0.6 #
- Removed export of
mono_core DefaultCommandEnvironmentBuildernow uses injected core dependencies- New:
DefaultCliEngineimplements coreCliEngine DefaultCliEnginenow uses injected router factory instead of creating router directly
0.0.5 #
- Breaking: Moved CLI IO to
Loggeracross router and executor implementations.DefaultCommandRouter.tryDispatchnow accepts{ required CliInvocation inv, required Logger logger }.DefaultTaskExecutor.executenow takes aLoggerand logs messages instead of writing toIOSink.- Updated tests to use an in-memory
Loggerbuffer.
0.0.4 #
- Implemented
DefaultCommandEnvironmentBuilderthat assembles the command environment from disk and invocation options.- Loads
mono.yaml, extractsmonocfgPath. - Scans packages, builds dependency graph, loads file-based groups.
- Computes effective order and concurrency; provides a
TargetSelector.
- Loads
- Implemented
DefaultCommandRouter(CLI wiring helper) and exported it viasrc/src.dart. - Runner now depends on the core
PluginResolverabstraction rather than a concrete registry. PluginRegistryimplementsPluginResolver(no behavior change).- New port:
WorkspaceConfigfor workspace configuration IO (read/writemono.yaml,monocfg/*).- Added types:
LoadedRootConfig,PackageRecord.
- Added types:
- New:
DefaultTaskExecutorimplementation of coreTaskExecutor.- Centralizes env → target → plan → run and dry-run output.
- Emits "No packages found. Run
mono scanfirst." when workspace is empty. - Uses optional
dryRunLabelso task dry-run uses user task names.
0.0.3 #
- Plugins: added
FormatPlugin(format, format:check) andTestPlugin(test). - Added comprehensive test coverage for all ports and functionality.
0.0.2 #
- Add filesystem-backed configuration utilities:
FileListConfigFolderfor folder-of-lists stores.FileGroupStoreadapter scoped tomonocfg/groups/.DefaultSlugNamePolicyfor robust group name normalization/validation.
- Prompt UX:
ConsolePrompter.checklistnow handles Enter (CR/LF) and cancel viaSelectionError; always restores TTY modes. - Exports: surfaced new system_io modules to consumers via
src/src.dart.
0.0.1 #
- Initial release with exports and implementations for the Mono CLI