fcnui 1.0.2 fcnui: ^1.0.2 copied to clipboard
The flutter_cn_ui CLI (Command-Line Interface) tool. It is used to generate component code for the flutter_cn_ui package.
import 'dart:developer';
import 'dart:io';
Future<ProcessResult> run(List<String> args) async {
final process = await Process.run('fcnui', args);
print(process.stdout.toString());
return process;
}
void main() {
//ivalid command
// invalidCommand();
//init
// initialize();
//add button
addButton();
}
void invalidCommand() {
run([]);
}
void initialize() {
run(['init']);
}
void addButton() {
run(['add', 'button']);
}