Very Good CLI

一个非常棒的 Dart 命令行界面。

安装

$ dart pub global activate very_good_cli

命令

$ very_good create

在几秒钟内根据提供的模板创建一个非常好的项目。默认使用 Very Good Core 模板。

Very Good Create

Creates a new very good project in the specified directory.

Usage: very_good create <output directory>
-h, --help                    Print this usage information.
    --project-name            The project name for this new project. This must be a valid dart package name.
    --desc                    The description for this new project.
                              (defaults to "A Very Good Project created by Very Good CLI.")
    --org-name                The organization for this new project.
                              (defaults to "com.example.verygoodcore")
-t, --template                The template used to generate this new project.

          [core] (default)    Generate a Very Good Flutter application.
          [dart_pkg]          Generate a reusable Dart package.
          [flutter_pkg]       Generate a reusable Flutter package.

Very Good Core 包含什么? ?

开箱即用,Very Good Core 包含

✅  跨平台支持 - 内置对 iOS、Android 和 Web 的支持(桌面即将推出!)

✅  构建风格 - 支持开发、暂存和生产的多种风格

✅  国际化支持 - 使用合成代码生成进行国际化支持,以简化开发流程

✅  安全空安全 - 运行时不再有空解引用异常。使用安全、静态类型系统进行开发。

✅  Bloc - 集成的 bloc 架构,用于可扩展、可测试的代码,它提供了业务逻辑和表示之间的清晰分离

✅  测试 - 单元测试和 Widget 测试,行覆盖率 100%(集成测试即将推出!)

✅  日志记录 - 内置、可扩展的日志记录,用于捕获未捕获的 Flutter 和 Dart 异常

✅  Very Good Analysis - Very Good Ventures 使用的严格 Lint 规则

✅  持续集成 - 使用 GitHub Actions 进行 Lint、格式化、测试和强制执行代码覆盖率

* 在 Flutter 启动应用:Very Good Core & CLI 中了解更多信息


$ very_good --help

查看完整的命令列表和使用信息。

? A Very Good Command Line Interface

Usage: very_good <command> [arguments]

Global options:
-h, --help           Print this usage information.
    --version        Print the current version.
    --analytics      Toggle anonymous usage statistics.

          [false]    Disable anonymous usage statistics
          [true]     Enable anonymous usage statistics

Available commands:
  create   very_good create <output directory>
           Creates a new very good flutter project in the specified directory.

Run "very_good help <command>" for more information about a command.

GitHub

https://github.com/VeryGoodOpenSource/very_good_cli