@sysnee/pgs 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/manager.js +4 -1
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -5,7 +5,6 @@ import path from 'path';
|
|
|
5
5
|
import yaml from 'js-yaml';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { execSync } from 'child_process';
|
|
8
|
-
import generateRandomPassword from '../common/helpers/password-generator.js';
|
|
9
8
|
|
|
10
9
|
const COMPOSE_FILE = path.join(process.cwd(), 'docker-compose.yml');
|
|
11
10
|
const INIT_DIR = path.join(process.cwd(), 'init');
|
|
@@ -379,6 +378,10 @@ function executeCommand(command) {
|
|
|
379
378
|
}
|
|
380
379
|
}
|
|
381
380
|
|
|
381
|
+
function generateRandomPassword() {
|
|
382
|
+
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
|
|
383
|
+
}
|
|
384
|
+
|
|
382
385
|
const program = new Command();
|
|
383
386
|
|
|
384
387
|
program
|