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