Skip to content

Commit

Permalink
Put CLI script imports back in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed May 28, 2017
1 parent 52fc697 commit 02522e9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bin/medic-conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#!/usr/bin/env node

if(process.argv.length < 4) {
usage();
process.exit(1);
}

const project = process.argv[2];
const instanceUrl = process.argv[3];
const couchUrl = `${instanceUrl}/medic`;

const usage = require('../src/cli-utils').usage;
const log = require('../src/cli-utils').log;
const big_log = require('../src/cli-utils').big_log;
Expand All @@ -19,6 +10,15 @@ const backupForms = require('../src/backup-forms');
const deleteForms = require('../src/delete-forms');
const uploadForms = require('../src/upload-forms');

if(process.argv.length < 4) {
usage();
process.exit(1);
}

const project = process.argv[2];
const instanceUrl = process.argv[3];
const couchUrl = `${instanceUrl}/medic`;

big_log(`Uploading project configuration for ${project} to ${instanceUrl}...`);

Promise.resolve()
Expand Down

0 comments on commit 02522e9

Please sign in to comment.