搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.0

ci

偵測是否正在 CI 環境中執行,以及有關 CI 供應商的資訊。

AndroidiOSmacOSWindowsLinux
近 30 天下載
105萬
喜歡數
7
Pub 分數
160

安裝套件

flutter pub add ci

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

ci 套件可偵測目前環境是否為 CI(持續整合)系統,並提供有關特定 CI 供應商的詳細資訊,例如 GitHub Actions、GitLab CI 或 CircleCI。它幫助開發者根據應用程式是否在 CI 管道中執行來條件性地執行程式碼,進而為建構、測試或部署啟用客製化行為。此套件支援多種平台,包括 Android、iOS、macOS、Windows 和 Linux,非常適合需要適應不同執行環境的跨平台 Flutter 應用程式。

適用情境

  • 條件構建邏輯
  • 自動化測試工作流程
  • 部署設定
  • 環境感知除錯
  • CI特定的日誌記錄
  • 安全的憑證處理

主要特色

  • 檢測 CI 環境
  • 識別 CI 供應商
  • 跨平台支援
  • 輕量且簡單的 API
  • 無外部依賴
  • 即時環境檢測

適合對象

  • 帶有 CI 結合的 Flutter 應用
  • 建構自動化腳本
  • 測試套件自訂
  • 多平台部署管道
  • 需要環境感知的開發人員

使用建議

  • 僅限已知的CI提供者
  • 不支援自訂CI系統
  • 依賴環境變數
  • 在邊緣情況下可能需要手動驗證
  • 無執行時設定選項

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

⚒️ Dart CLI Utilities

A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart.

Melos docs.page Chat on Discord

License


Packages
  • 🌈 AnsiStyles
    • Create colorful terminal output with ansi styled text in io environments.
  • ☁️ CI
    • Detect whether you're running in a CI environment and retrieve information about the CI vendor.
  • 📦 StorageBox
    • Easily store and persist configuration items for your CLI apps.

Built and maintained by Invertase.

所屬分類

原始碼儲存庫

使用此套件的專案