@vizzly/cli
Advanced tools
Comparing version 0.0.19 to 0.0.21-rc
@@ -65,4 +65,2 @@ #!/usr/bin/env node | ||
var commands = __importStar(require("./commands")); | ||
var DEFAULT_IMAGE = "ghcr.io/vizzly-co/query-engine:latest"; | ||
var DEFAULT_QUERY_ENGINE_PORT = "8000"; | ||
var program = new commander_1.Command(); | ||
@@ -86,2 +84,7 @@ program.description("Vizzly CLI."); | ||
program | ||
.command("validate") | ||
.description("Validates a Vizzly config") | ||
.option("-c, --config <type>", "Path to your Vizzly config.") | ||
.action(commands.validateConfig); | ||
program | ||
.command("create-key-pair") | ||
@@ -88,0 +91,0 @@ .description("Create public and private key pairs") |
@@ -23,1 +23,2 @@ "use strict"; | ||
__exportStar(require("./configFromSQL"), exports); | ||
__exportStar(require("./validateConfig"), exports); |
@@ -29,6 +29,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.initVizzlyConfig = void 0; | ||
exports.initVizzlyConfig = exports.DEFAULT_VIZZLY_CONFIG_FILE = void 0; | ||
var VizzlyConfig = __importStar(require("../Models/VizzlyConfig")); | ||
var fs_1 = __importDefault(require("fs")); | ||
var chalk_1 = __importDefault(require("chalk")); | ||
exports.DEFAULT_VIZZLY_CONFIG_FILE = "vizzly.config.json"; | ||
var readPublicCert = function (path) { | ||
@@ -47,3 +48,3 @@ try { | ||
var configAsString = JSON.stringify(initialVizzlyConfig, null, 2); | ||
var vizzlyConfigFilePath = "vizzly.config.json"; | ||
var vizzlyConfigFilePath = exports.DEFAULT_VIZZLY_CONFIG_FILE; | ||
fs_1.default.writeFileSync(vizzlyConfigFilePath, configAsString); | ||
@@ -50,0 +51,0 @@ console.log(chalk_1.default.cyanBright("Written Vizzly config to '".concat(vizzlyConfigFilePath, "'."))); |
"use strict"; | ||
// TODO initiate the different integration configs... | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.init = void 0; | ||
var init = function (publicKey) { return ({ | ||
connection: {}, | ||
connection: { client: "postgres", connection: { | ||
password: "{{VIZZLY_POSTGRES_PASSWORD}}", | ||
database: "{{VIZZLY_POSTGRES_DATABASE}}", | ||
user: "{{VIZZLY_POSTGRES_USER}}", | ||
host: "{{VIZZLY_POSTGRES_HOST}}", | ||
port: 5432 | ||
} }, | ||
dataSets: [], | ||
@@ -7,0 +14,0 @@ publicKeyCertificates: [publicKey], |
{ | ||
"name": "@vizzly/cli", | ||
"version": "0.0.19", | ||
"version": "0.0.21-rc", | ||
"main": "index.js", | ||
@@ -45,2 +45,3 @@ "repository": "git@github.com:vizzly-co/cli.git", | ||
"figlet": "^1.5.2", | ||
"joi": "^17.7.0", | ||
"jose": "^4.9.3", | ||
@@ -47,0 +48,0 @@ "jwk-to-pem": "^2.0.5", |
42538
14
813
10
7
+ Addedjoi@^17.7.0
+ Added@hapi/hoek@9.3.0(transitive)
+ Added@hapi/topo@5.1.0(transitive)
+ Added@sideway/address@4.1.5(transitive)
+ Added@sideway/formula@3.0.1(transitive)
+ Added@sideway/pinpoint@2.0.0(transitive)
+ Addedjoi@17.13.3(transitive)