Comparing version 0.0.28 to 0.0.29
@@ -86,2 +86,3 @@ "use strict"; | ||
.command('mocks') | ||
.description("Create table sql for the tables") | ||
.arguments('[tables...]') | ||
@@ -93,3 +94,3 @@ .action((tables, command, options) => { | ||
}); | ||
const envs = program.command('envs') | ||
const envs = program.command('envs').description("Lists all the environments") | ||
.action((command, options) => { | ||
@@ -104,3 +105,9 @@ const envAndNameOrErrors = (0, environments_1.currentEnvironment)(cwd, config.environments, options.env); | ||
}); | ||
const env = program.command('env') | ||
const status = program.command('status').description("Checks that the environments are accessible and gives report") | ||
.action((command, options) => __awaiter(this, void 0, void 0, function* () { | ||
const status = yield (0, environments_1.checkStatus)(config.environments); | ||
(0, utils_1.toColumns)(environments_1.statusColDefn)(Object.values(status)).forEach(line => console.log(line)); | ||
// console.log ( JSON.stringify ( status, null, 2 ) ) | ||
})); | ||
const env = program.command('env').description("Sets the current environment") | ||
.arguments('<env>') | ||
@@ -115,3 +122,3 @@ .action((env, command, options) => { | ||
}); | ||
const tables = program.command('tables') | ||
const tables = program.command('tables').description("Lists the known tables") | ||
.action((command, options) => { | ||
@@ -118,0 +125,0 @@ (0, tables_1.prettyPrintTables)(config.tables).forEach(line => console.log(line)); |
@@ -134,1 +134,7 @@ "use strict"; | ||
}); | ||
describe("status", () => { | ||
it("should return status", () => __awaiter(void 0, void 0, void 0, function* () { | ||
const expected = (0, files_1.readTestFile)(mockTestDir, 'status.expected.txt'); | ||
expect(yield (0, integration_fixture_1.executeDbAuto)(mockTestDir, `status`)).toEqual(expected); | ||
})); | ||
}); |
{ | ||
"name": "db-auto", | ||
"description": "", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"main": "dist/index", | ||
@@ -24,10 +24,10 @@ "types": "dist/index", | ||
"commander": "^10.0.0", | ||
"@db-auto/oracle": "0.0.28", | ||
"@db-auto/mysql": "0.0.28", | ||
"@db-auto/postgres": "0.0.28", | ||
"@db-auto/tables": "0.0.28", | ||
"@db-auto/utils": "0.0.28", | ||
"@db-auto/files": "0.0.28", | ||
"@db-auto/mocks": "0.0.28", | ||
"@db-auto/environments": "0.0.28" | ||
"@db-auto/oracle": "0.0.29", | ||
"@db-auto/mysql": "0.0.29", | ||
"@db-auto/postgres": "0.0.29", | ||
"@db-auto/tables": "0.0.29", | ||
"@db-auto/utils": "0.0.29", | ||
"@db-auto/files": "0.0.29", | ||
"@db-auto/mocks": "0.0.29", | ||
"@db-auto/environments": "0.0.29" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
48048
720
+ Added@db-auto/dal@0.0.29(transitive)
+ Added@db-auto/environments@0.0.29(transitive)
+ Added@db-auto/files@0.0.29(transitive)
+ Added@db-auto/mocks@0.0.29(transitive)
+ Added@db-auto/mysql@0.0.29(transitive)
+ Added@db-auto/oracle@0.0.29(transitive)
+ Added@db-auto/postgres@0.0.29(transitive)
+ Added@db-auto/tables@0.0.29(transitive)
+ Added@db-auto/utils@0.0.29(transitive)
- Removed@db-auto/dal@0.0.28(transitive)
- Removed@db-auto/environments@0.0.28(transitive)
- Removed@db-auto/files@0.0.28(transitive)
- Removed@db-auto/mocks@0.0.28(transitive)
- Removed@db-auto/mysql@0.0.28(transitive)
- Removed@db-auto/oracle@0.0.28(transitive)
- Removed@db-auto/postgres@0.0.28(transitive)
- Removed@db-auto/tables@0.0.28(transitive)
- Removed@db-auto/utils@0.0.28(transitive)
Updated@db-auto/environments@0.0.29
Updated@db-auto/files@0.0.29
Updated@db-auto/mocks@0.0.29
Updated@db-auto/mysql@0.0.29
Updated@db-auto/oracle@0.0.29
Updated@db-auto/postgres@0.0.29
Updated@db-auto/tables@0.0.29
Updated@db-auto/utils@0.0.29