mvvm_cli_nerdzlab
MVVM CLI 工具,一个用于简化 MVVM 项目创建的命令行实用程序。
命令行工具,旨在简化 MVVM 项目的创建
以下为英文项目原文快照,最新内容请访问 GitHub。
MVVM CLI Tool, a command-line utility designed to streamline the creation of MVVM (Model-View-ViewModel) projects. This tool automates the initial setup of your MVVM architecture, making it easier and faster to get started with your development process.
Use mvvm create.
Use mvvm analyze --arb.
.xml files and TextStyles from text_style_const.dart file.Use mvvm generate or specify the --colors or --textStyle to generate only one type: mvvm generate --colors.
To install the MVVM CLI tool, run:
dart pub global activate mvvm_cli_nerdzlab
Once the tool is activated, you need to add the .pub-cache/bin directory to your system's PATH to ensure that you can run the mvvm commands from any location in your terminal. This can be done by adding the following line to your shell configuration file (e.g., .bashrc, .zshrc, or .bash_profile):
export PATH="$PATH":"$HOME/.pub-cache/bin"
To verify that the installation was successful and the PATH is correctly set, run:
mvvm