Skip to content

Commit

Permalink
feat: add OS architecture to withError()
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jan 8, 2024
1 parent b4a574d commit 89edd2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/cli/exit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function withError( message: Error | string ): never {
console.log(
`${ yellow( 'Debug: ' ) } VIP-CLI v${ env.app.version }, Node ${ env.node.version }, ${
env.os.name
} ${ env.os.version }`
} ${ env.os.version } ${ env.os.arch }`
);

if ( debug.names.length > 0 && message instanceof Error ) {
Expand Down
4 changes: 3 additions & 1 deletion src/lib/env.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { platform, release } from 'node:os';
import { arch, platform, release } from 'node:os';

import pkg from '../../package.json';

Expand All @@ -10,6 +10,7 @@ interface AppInfo {
interface OSInfo {
name: string;
version: string;
arch: string;
}

interface NodeInfo {
Expand All @@ -31,6 +32,7 @@ const app: AppInfo = {
const os: OSInfo = {
name: platform(),
version: release(),
arch: arch(),
};

const node: NodeInfo = {
Expand Down

0 comments on commit 89edd2f

Please sign in to comment.