flugx_cli 1.0.0+3
flugx_cli: ^1.0.0+3 copied to clipboard
Flugx is a CLI tool that automatically generates a complete Flutter package called `app_api` using GetX, based on a Swagger/OpenAPI specification file.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate flugx_cliUse it
The package has the following executables:
$ flugx
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flugx_cliWith Flutter:
$ flutter pub add flugx_cliThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
flugx_cli: ^1.0.0+3Alternatively, 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:flugx_cli/flugx.dart';
import 'package:flugx_cli/generator.dart';