copyFromTemplate static method

Future<void> copyFromTemplate()

Implementation

static Future<void> copyFromTemplate() async {
  LogService.info('Running `git clone` …');
  await run('git clone http://gitlab.sunacwy.com.cn/smart-community/sunac-flutter/sunac_flutter_template.git .template',
      verbose: true);

  await run('mv .template/lib lib', verbose: false);
  await run('mv .template/assets assets', verbose: false);
  await run('rm -rf .template', verbose: false);

  LogService.success('Copying from template success!');
}