@myapihq/cli 1.1.0-wip.4 → 1.1.0-wip.5
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/commands/storage.js +5 -1
- package/package.json +1 -1
package/dist/commands/storage.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
2
|
import { extname, basename } from 'path';
|
|
3
|
-
import { storage as sdkStorage
|
|
3
|
+
import { storage as sdkStorage } from '@myapihq/sdk';
|
|
4
4
|
import { requireConfig } from '../config.js';
|
|
5
|
+
// Mirrors STORAGE_BASE in @myapihq/sdk's config (intentionally NOT
|
|
6
|
+
// re-exported from the SDK barrel — see comment in sdk/src/index.ts).
|
|
7
|
+
// Used here so `myapi storage get-url` is a pure local URL constructor.
|
|
8
|
+
const STORAGE_BASE = process.env.MYAPI_STORAGE_URL ?? 'https://api.mystorageapi.com';
|
|
5
9
|
import { success, error, printTable, info, printJson } from '../output.js';
|
|
6
10
|
import { formatDate } from '../utils.js';
|
|
7
11
|
import { requireOrg, requireArg } from '../helpers.js';
|