UNPKG

625 BPlain TextView Raw
1#!/usr/bin/env node
2
3'use strict';
4
5const BbPromise = require('bluebird');
6
7process.on('unhandledRejection', (e) => {
8 console.error('**PANIC** Something unexpected happened! Queue Storage Emulator may be in an inconsistent state!');
9 console.error(e);
10});
11process.noDeprecation = true;
12
13(() => BbPromise.resolve().then(() => {
14 // requiring here so that if anything went wrong,
15 // during require, it will be caught.
16 const argv = require('minimist')(process.argv.slice(2));
17 const A = require('../lib/AzuriteQueue'),
18 azurite = new A();
19 azurite.init(argv);
20}).catch(e => {
21 process.exitCode = 1;
22 console.error(e);
23}))();
\No newline at end of file