fs_service 1.1.0 fs_service: ^1.1.0 copied to clipboard
Firestore service tool. Allow developer to get or add documents and collections to the Firestore using service account.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate fs_service
Use it
The package has the following executables:
$ fs_service
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add fs_service
With Flutter:
$ flutter pub add fs_service
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
fs_service: ^1.1.0
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:fs_service/app.dart';
import 'package:fs_service/commands/add_col_command.dart';
import 'package:fs_service/commands/add_doc_command.dart';
import 'package:fs_service/commands/common.dart';
import 'package:fs_service/commands/common_args.dart';
import 'package:fs_service/commands/del_col_command.dart';
import 'package:fs_service/commands/del_doc_command.dart';
import 'package:fs_service/commands/get_col_command.dart';
import 'package:fs_service/commands/get_doc_command.dart';
import 'package:fs_service/commands/log_level.dart';
import 'package:fs_service/data/mappers/document_mapper.dart';
import 'package:fs_service/data/repo/easy_firestore_impl.dart';
import 'package:fs_service/data/utils/document_ext.dart';
import 'package:fs_service/data/utils/firestore_path_utils.dart';
import 'package:fs_service/di/di.dart';
import 'package:fs_service/domain/mappers/value_mapper.dart';
import 'package:fs_service/domain/repo/easy_firestore.dart';
import 'package:fs_service/log/log.dart';
import 'package:fs_service/os/close_app.dart';
import 'package:fs_service/os/signals.dart';
import 'package:fs_service/utils/firestore_api_provider.dart';
import 'package:fs_service/utils/io_functions.dart';
import 'package:fs_service/utils/json_utils.dart';
import 'package:fs_service/utils/path_utils.dart';