fam 1.0.0 fam: ^1.0.0 copied to clipboard
Fam is a scripting service for flutter project asset management.
Language: 🇺🇸 English | 🇨🇳 Chinese
-
Fam Introduction
Fam is a scripting service designed for flutter project asset management.The service has the characteristics of complete functions, convenient operation, support for multiple platforms, beautiful interface, and strong customization.
-
Fam Configuration
Fam is hosted on pub.dev, you can run the following command to configure it, the command is as follows:
flutter pub global activate fam
If you have never configured the .pub-cache path, the configuration prompt will be output after the above command is executed, as follows:
macOS users:
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.): export PATH="$PATH":"$HOME/.pub-cache/bin"
Follow the above prompts to configure.
-
Fam Command
-
fam
orfam --help
orfam -h
This command provides a quick look at the level one commands and introductions Fam has to offer.The command output is as follows:
************************* Fam -- Start ************************* ______ | ____| | |__ __ _ _ __ ___ | __/ _` | '_ ` _ \ | | | (_| | | | | | | |_| \__,_|_| |_| |_| Fam is a scripting service for flutter project asset management. Usage: fam <command> [arguments] Global options: -h, --help Print this usage information. Available commands: delete Delete project asset files. filter Filter project asset files by specified criteria. fix Fix project asset management Fam script service. init Initialize the configuration of the Fam script service for project asset management. rename Rename the project asset management file. run Run the Fam script service for project asset management. Run "fam help <command>" for more information about a command. ************************** Fam -- End **************************
-
fam init
Fam script service initialization configuration for project Asset file management.Running this command in a terminal will let you enter the asset management filename and class name, like this:
************************* Fam -- Start ************************* ♦ Please enter the filename for the asset management file:fam ♦ Please enter the class name of the asset management class:Fam Project Asset Management's Fam service initialized successfully,Run `fam run` to experience the service. ____ / ___| _ _ ___ ___ ___ ___ ___ \___ \| | | |/ __/ __/ _ \/ __/ __| ___) | |_| | (_| (_| __/\__ \__ \ |____/ \__,_|\___\___\___||___/___/ ************************** Fam -- End **************************
Note:
- The name of the file is composed of lowercase letters, for example: fam; the fam.dart file will be generated later.
- The class name of the file is composed of letters, and the first letter must be capitalized, such as Fam ; the class name will be generated later abstract class Fam {}.
-
fam run
Execute the service of project asset management Fam, after execution, you can use the class name to quickly access the asset file,The output of this command is as follows:************************* Fam -- Start ************************* The fam management service for project assets runs successfully. ____ / ___| _ _ ___ ___ ___ ___ ___ \___ \| | | |/ __/ __/ _ \/ __/ __| ___) | |_| | (_| (_| __/\__ \__ \ |____/ \__,_|\___\___\___||___/___/ ************************** Fam -- End **************************
-
-
Fam Help Center