twafok_cli 1.0.1+1
twafok_cli: ^1.0.1+1 copied to clipboard
CLI tool for Twafok project clean architecture - Generate features, usecases, DI and barrel files automatically
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate twafok_cliUse it
The package has the following executables:
$ twafok
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add twafok_cliWith Flutter:
$ flutter pub add twafok_cliThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
twafok_cli: ^1.0.1+1Alternatively, 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:twafok_cli/commands/add_usecase_command.dart';
import 'package:twafok_cli/commands/create_feature_command.dart';
import 'package:twafok_cli/commands/generate_di_command.dart';
import 'package:twafok_cli/commands/generate_paths_command.dart';
import 'package:twafok_cli/generators/base_repository_generator.dart';
import 'package:twafok_cli/generators/cubit_generator.dart';
import 'package:twafok_cli/generators/datasource_generator.dart';
import 'package:twafok_cli/generators/repository_generator.dart';
import 'package:twafok_cli/generators/usecase_generator.dart';
import 'package:twafok_cli/services/file_service.dart';
import 'package:twafok_cli/services/injection_service.dart';
import 'package:twafok_cli/services/naming_service.dart';
import 'package:twafok_cli/templates/usecase_template.dart';