@substrat-run/cli 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -117,7 +117,7 @@ async function cmdLogin() {
117
117
  }
118
118
  else if (tenants.length > 1) {
119
119
  console.log(' you belong to several workspaces:');
120
- tenants.forEach((t, i) => console.log(` ${i + 1}. ${t.slug} (${t.name})`));
120
+ tenants.forEach((t, i) => console.log(` ${i + 1}. ${t.name} [${t.slug}]`));
121
121
  const pick = await ask(` default workspace [1-${tenants.length}, or a slug]: `);
122
122
  defaultTenant =
123
123
  tenants[Number(pick) - 1]?.slug ??
@@ -153,7 +153,7 @@ async function pickWorkspace(auth, dir) {
153
153
  }
154
154
  else {
155
155
  console.log('this project has no pinned workspace. you belong to:');
156
- tenants.forEach((t, i) => console.log(` ${i + 1}. ${t.slug} (${t.name})`));
156
+ tenants.forEach((t, i) => console.log(` ${i + 1}. ${t.name} [${t.slug}]`));
157
157
  const suggested = loadConfig().defaultTenant;
158
158
  const def = tenants.findIndex((t) => t.slug === suggested) + 1; // 0 = no login default among them
159
159
  const pick = await ask(`push as [1-${tenants.length}${def ? `, enter = ${def}` : ''}]: `);
@@ -310,7 +310,7 @@ async function cmdWhoami() {
310
310
  if (tenants.length === 0)
311
311
  console.log(' no workspaces yet.');
312
312
  for (const t of tenants)
313
- console.log(` ${t.slug} (${t.name})`);
313
+ console.log(` ${t.name} [${t.slug}]`);
314
314
  }
315
315
  async function main() {
316
316
  const command = argv[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrat-run/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "The substrat CLI — authenticated deploy tooling: push a vertical to the platform, manage its versions and channels",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "node": ">=20"
29
29
  },
30
30
  "dependencies": {
31
- "@substrat-run/contracts": "^0.17.0"
31
+ "@substrat-run/contracts": "^0.18.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^22.0.0",