raunak_cli 1.0.1+2
raunak_cli: ^1.0.1+2 copied to clipboard
A Dart CLI to generate Flutter projects with a clean architecture setup, folder structure, and essential boilerplate.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate raunak_cliUse it
The package has the following executables:
$ raunak-cli
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add raunak_cliWith Flutter:
$ flutter pub add raunak_cliThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
raunak_cli: ^1.0.1+2Alternatively, 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:raunak_cli/commands/generate_feature.dart';
import 'package:raunak_cli/commands/init.dart';
import 'package:raunak_cli/raunak.dart';
import 'package:raunak_cli/templates/api_client_template.dart';
import 'package:raunak_cli/templates/api_endpoints_template.dart';
import 'package:raunak_cli/templates/api_entity_template.dart';
import 'package:raunak_cli/templates/api_response_template.dart';
import 'package:raunak_cli/templates/app_routes_template.dart';
import 'package:raunak_cli/templates/env_config_template.dart';
import 'package:raunak_cli/templates/env_template.dart';
import 'package:raunak_cli/templates/local_storage_template.dart';
import 'package:raunak_cli/templates/main_template.dart';
import 'package:raunak_cli/templates/navigate_template.dart';
import 'package:raunak_cli/templates/test_template.dart';
import 'package:raunak_cli/templates/theme_template.dart';
import 'package:raunak_cli/templates/token_storage_template.dart';
import 'package:raunak_cli/utils/string_utils.dart';