1 | #!/usr/bin/env node
|
2 |
|
3 | 'use strict';
|
4 |
|
5 | const BbPromise = require('bluebird');
|
6 |
|
7 | process.on('unhandledRejection', (e) => {
|
8 | console.error('**PANIC** Something unexpected happened! Table Storage Emulator may be in an inconsistent state!');
|
9 | console.error(e);
|
10 | });
|
11 | process.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/AzuriteTable'),
|
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 |