comet_cli 0.3.1 comet_cli: ^0.3.1 copied to clipboard
A command-line interface for comet project. Static Site Generator made with Flutter.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate comet_cli
Use it
The package has the following executables:
$ comet
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add comet_cli
With Flutter:
$ flutter pub add comet_cli
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
comet_cli: ^0.3.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:comet_cli/commands/build.dart';
import 'package:comet_cli/commands/clean.dart';
import 'package:comet_cli/commands/create.dart';
import 'package:comet_cli/commands/deploy.dart';
import 'package:comet_cli/commands/doctor.dart';
import 'package:comet_cli/commands/help.dart';
import 'package:comet_cli/commands/start.dart';
import 'package:comet_cli/commands/upgrade.dart';
import 'package:comet_cli/commands/version.dart';
import 'package:comet_cli/config.dart';
import 'package:comet_cli/functions/build_only_page.dart';
import 'package:comet_cli/functions/code_name.dart';
import 'package:comet_cli/functions/compare_versions.dart';
import 'package:comet_cli/functions/get_commit_msg.dart';
import 'package:comet_cli/functions/git_library.dart';
import 'package:comet_cli/functions/read_remote_config.dart';
import 'package:comet_cli/functions/read_src_book.dart';
import 'package:comet_cli/functions/read_src_data.dart';
import 'package:comet_cli/functions/read_src_page.dart';
import 'package:comet_cli/functions/read_src_shelf.dart';
import 'package:comet_cli/functions/read_yaml.dart';
import 'package:comet_cli/functions/resolve_src_shelves.dart';
import 'package:comet_cli/functions/run_flutter.dart';
import 'package:comet_cli/functions/run_flutter_clean.dart';
import 'package:comet_cli/functions/run_flutter_pub_get.dart';
import 'package:comet_cli/functions/run_flutter_release_build.dart';
import 'package:comet_cli/functions/run_flutter_restart.dart';
import 'package:comet_cli/functions/run_flutter_run.dart';
import 'package:comet_cli/functions/run_git.dart';
import 'package:comet_cli/functions/run_git_add_origin.dart';
import 'package:comet_cli/functions/run_git_commit_gh_branch.dart';
import 'package:comet_cli/functions/run_git_has_remote.dart';
import 'package:comet_cli/functions/run_git_init.dart';
import 'package:comet_cli/functions/run_git_is_git_dir.dart';
import 'package:comet_cli/functions/run_git_push_gh_branch.dart';
import 'package:comet_cli/functions/to_dart_book.dart';
import 'package:comet_cli/functions/to_dart_data.dart';
import 'package:comet_cli/functions/to_dart_page.dart';
import 'package:comet_cli/functions/to_dart_shelf.dart';
import 'package:comet_cli/functions/to_raw_book.dart';
import 'package:comet_cli/functions/to_raw_data.dart';
import 'package:comet_cli/functions/to_raw_page.dart';
import 'package:comet_cli/functions/to_raw_shelf.dart';
import 'package:comet_cli/functions/watch_flutter_lib.dart';
import 'package:comet_cli/functions/watch_src.dart';
import 'package:comet_cli/functions/write_gen_book.dart';
import 'package:comet_cli/functions/write_gen_data.dart';
import 'package:comet_cli/functions/write_gen_page.dart';
import 'package:comet_cli/functions/write_gen_shelf.dart';
import 'package:comet_cli/router/build.dart';
import 'package:comet_cli/router/clean.dart';
import 'package:comet_cli/router/create.dart';
import 'package:comet_cli/router/deploy.dart';
import 'package:comet_cli/router/doctor.dart';
import 'package:comet_cli/router/root.dart';
import 'package:comet_cli/router/start.dart';
import 'package:comet_cli/router/upgrade.dart';
import 'package:comet_cli/types/raw.dart';
import 'package:comet_cli/types/remote_config.dart';
import 'package:comet_cli/types/src.dart';
import 'package:comet_cli/types/yaml.dart';
import 'package:comet_cli/utils/can_use_command.dart';
import 'package:comet_cli/utils/crean_folder.dart';
import 'package:comet_cli/utils/delete_file.dart';
import 'package:comet_cli/utils/download_json.dart';
import 'package:comet_cli/utils/download_zip.dart';
import 'package:comet_cli/utils/progress_star.dart';
import 'package:comet_cli/utils/read_sub_file_names.dart';
import 'package:comet_cli/utils/read_sub_folder_names.dart';
import 'package:comet_cli/utils/unzip.dart';
import 'package:comet_cli/utils/write_file.dart';
import 'package:comet_cli/utils/write_folder.dart';