twafok_cli 1.0.1+1 copy "twafok_cli: ^1.0.1+1" to clipboard
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_cli

Use 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_cli

With Flutter:

 $ flutter pub add twafok_cli

This 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+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: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';
1
likes
140
points
80
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI tool for Twafok project clean architecture - Generate features, usecases, DI and barrel files automatically

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, io, path

More

Packages that depend on twafok_cli