@ghostystudio/cli 0.2.0 → 0.2.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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -275,7 +275,7 @@ async function request(path, opts = {}, retried = false) {
|
|
|
275
275
|
method: opts.method ?? (opts.body !== void 0 || opts.raw !== void 0 ? "POST" : "GET"),
|
|
276
276
|
headers: {
|
|
277
277
|
authorization: `Bearer ${token}`,
|
|
278
|
-
"user-agent": `ghosty-cli/${"0.2.
|
|
278
|
+
"user-agent": `ghosty-cli/${"0.2.1"}`,
|
|
279
279
|
...opts.body !== void 0 ? { "content-type": "application/json" } : {},
|
|
280
280
|
...opts.headers
|
|
281
281
|
},
|
|
@@ -670,7 +670,7 @@ async function scheduleCmd(sub, agent, arg, v) {
|
|
|
670
670
|
});
|
|
671
671
|
throw e;
|
|
672
672
|
}
|
|
673
|
-
if (v.title) await api(convPath(agent, `/${enc3(sid)}`), { method: "PATCH", body: { title: v.title } });
|
|
673
|
+
if (v.title && created) await api(convPath(agent, `/${enc3(sid)}`), { method: "PATCH", body: { title: v.title } });
|
|
674
674
|
const p = r.programado;
|
|
675
675
|
return out(
|
|
676
676
|
{ scheduled: p },
|
|
@@ -765,7 +765,7 @@ async function main() {
|
|
|
765
765
|
});
|
|
766
766
|
globals.json = Boolean(v.json);
|
|
767
767
|
globals.token = v.token;
|
|
768
|
-
if (v.version) return out({ version: "0.2.
|
|
768
|
+
if (v.version) return out({ version: "0.2.1" }, () => "0.2.1");
|
|
769
769
|
const [cmd, sub, a1, a2] = pos;
|
|
770
770
|
if (!cmd || v.help || cmd === "help") return showHelp();
|
|
771
771
|
switch (cmd) {
|
package/package.json
CHANGED