dart-build-cli-app 是做什麼的?
入口點結構、退出碼、跨平台腳本。用於建立命令列工具、腳本或應用程式。
入口點結構、退出碼、跨平台腳本。用於建立命令列工具、腳本或應用程式。
此開發技能專注於使用 Dart 語言建構命令列應用程式,詳細涵蓋了標準的入口點結構、退出碼處理以及跨平台腳本管理。對於任何想要開發高效、可移植的 CLI 工具的開發者來說,這項技能提供了清晰的指引。技能支援所有主要的 Dart 開發平台,包括 Windows、macOS 和 Linux,並相容於 Dart SDK 及相關的 IDE 環境。透過遵循此技能提供的結構與最佳實務,開發者能夠確保他們的應用程式具有一致的用戶體驗,並能正確處理各種執行結果(如成功或錯誤)的退出碼。此外,技能還強調了編寫跨平台腳本的重要性,讓應用程式能夠在不同作業系統上無縫運行,減少了平台相關的維護工作。這項技能是基於 Dart 社群長期累積的命令列應用開發經驗所整合而成,旨在標準化開發流程並提升程式碼的可靠性與可維護性。
npx skills add https://github.com/dart-lang/skills/tree/main/skills/dart-build-cli-appInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
入口點結構、退出碼、跨平台腳本。用於建立命令列工具、腳本或應用程式。
This repo contains 8 individual skills — each has its own dedicated page.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Use switch expressions and pattern matching where appropriate
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.