@anaella/cli 0.5.0 → 0.5.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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,6 +5,9 @@ import { readFileSync as readFileSync3 } from "fs";
|
|
|
5
5
|
import { AnaellaClient } from "@anaella/client";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
|
|
8
|
+
// package.json
|
|
9
|
+
var version = "0.5.1";
|
|
10
|
+
|
|
8
11
|
// src/browser-login.ts
|
|
9
12
|
import { spawn } from "child_process";
|
|
10
13
|
import crypto from "crypto";
|
|
@@ -278,7 +281,7 @@ var collect = (val, acc) => {
|
|
|
278
281
|
var program = new Command();
|
|
279
282
|
program.name("anaella").description(
|
|
280
283
|
"CLI for anaella.com \u2014 find and run tools, schedule and publish posts via the /v1 API."
|
|
281
|
-
).version(
|
|
284
|
+
).version(version).option("--api-key <key>", "ana_ API key (overrides env + config)").option("--api-url <url>", "API base URL").option("--json", "output raw JSON");
|
|
282
285
|
async function withClient(command, fn, columns) {
|
|
283
286
|
const opts = command.optsWithGlobals();
|
|
284
287
|
const cfg = resolveConfig({ apiKey: opts.apiKey, apiUrl: opts.apiUrl }, process.env);
|