@glash/cli 0.2.5 → 0.2.6

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/bin/glash.mjs CHANGED
@@ -3,7 +3,7 @@ import { argv, exit } from 'node:process';
3
3
  import { parseArgs } from '../lib/args.mjs';
4
4
  import { info, fail, color } from '../lib/ui.mjs';
5
5
 
6
- const VERSION = '0.2.5';
6
+ const VERSION = '0.2.6';
7
7
 
8
8
  const sub = argv[2];
9
9
  const rest = argv.slice(3);
@@ -38,6 +38,14 @@ export async function status({ positional, flags }) {
38
38
  for (const ev of pipe.events ?? []) {
39
39
  info(` ${color.dim((ev.createdAt ?? '').slice(11, 19))} ${ev.step.padEnd(8)} ${ev.status.padEnd(10)} ${ev.message ?? ''}`);
40
40
  }
41
+ if (pipe.build_stderr && ['error', 'failed'].includes(pipe.deployStatus ?? pipe.buildStatus ?? '')) {
42
+ const tail = String(pipe.build_stderr).split('\n').slice(-80).join('\n').trim();
43
+ if (tail) {
44
+ info('');
45
+ info(color.bold('Build output tail'));
46
+ info(color.dim(tail));
47
+ }
48
+ }
41
49
  } catch (e) {
42
50
  fail(e.message);
43
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glash/cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "glashDB command-line interface — deploy projects, pull source + env, manage env vars.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://glashdb.com",