@pebblehouse/odin-cli 0.1.0 → 0.1.1
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/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -102,8 +102,8 @@ import { Command } from "commander";
|
|
|
102
102
|
|
|
103
103
|
// src/auth/refresh.ts
|
|
104
104
|
import { createClient } from "@supabase/supabase-js";
|
|
105
|
-
var SUPABASE_URL = process.env.ODIN_SUPABASE_URL ??
|
|
106
|
-
var SUPABASE_ANON_KEY = process.env.ODIN_SUPABASE_ANON_KEY ??
|
|
105
|
+
var SUPABASE_URL = process.env.ODIN_SUPABASE_URL ?? "https://vdiwtiiksdyhlibqrngw.supabase.co";
|
|
106
|
+
var SUPABASE_ANON_KEY = process.env.ODIN_SUPABASE_ANON_KEY ?? "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZkaXd0aWlrc2R5aGxpYnFybmd3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM2ODM4NDksImV4cCI6MjA4OTI1OTg0OX0.gAccODqqhBnL_npqG7H42EvaT2CWR1P2pqo5NVjKFas";
|
|
107
107
|
async function getValidToken() {
|
|
108
108
|
const creds = getCredentials();
|
|
109
109
|
if (!creds) {
|
|
@@ -173,8 +173,9 @@ pebblesCmd.command("create <slug>").description("Create a pebble").requiredOptio
|
|
|
173
173
|
process.stdout.write(JSON.stringify(res) + "\n");
|
|
174
174
|
if (res.error) process.exit(1);
|
|
175
175
|
});
|
|
176
|
-
pebblesCmd.command("update <slug>").description("Update a pebble").option("--name <name>", "New name").option("--status <status>", "New status").option("--summary <summary>", "New summary").option("--repo-url <url>", "Repository URL").option("--domain <domain>", "Domain").action(async (slug, opts) => {
|
|
176
|
+
pebblesCmd.command("update <slug>").description("Update a pebble").option("--slug <newSlug>", "New slug (rename)").option("--name <name>", "New name").option("--status <status>", "New status").option("--summary <summary>", "New summary").option("--repo-url <url>", "Repository URL").option("--domain <domain>", "Domain").action(async (slug, opts) => {
|
|
177
177
|
const body = {};
|
|
178
|
+
if (opts.slug) body.slug = opts.slug;
|
|
178
179
|
if (opts.name) body.name = opts.name;
|
|
179
180
|
if (opts.status) body.status = opts.status;
|
|
180
181
|
if (opts.summary) body.summary = opts.summary;
|