UNPKG

firebase-tools-extra

Version:

Extra functionality for firebase-tools with support for emulators and auth through service account.

22 lines (21 loc) 801 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var rtdb_1 = require("../actions/rtdb"); /** * @name databasePush * Add a new JSON object to a list of data in your Firebase * @param program - Commander program */ function databasePushCommand(program) { program .command('database:remove <path>') .description('remove data from your Firebase at the specified path') .option('--emulator', 'use RTDB emulator') .option('--debug', 'print verbose debug output to console') .action(function (dbPath, options) { return rtdb_1.rtdbRemove(dbPath, options) .then(function () { return process.exit(0); }) .catch(function () { return process.exit(1); }); }); } exports.default = databasePushCommand;