UNPKG

firebase-tools-extra

Version:

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

19 lines (18 loc) 698 B
import { rtdbRemove } from '../actions/rtdb'; /** * @name databasePush * Add a new JSON object to a list of data in your Firebase * @param program - Commander program */ export default 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 rtdbRemove(dbPath, options) .then(function () { return process.exit(0); }) .catch(function () { return process.exit(1); }); }); }