Skip to content

Commit 59780ef

Browse files
fix: undefined name on specific platforms fixed (#1796)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent 28f730b commit 59780ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ let args = [];
55
if (process.argv.slice(2).length === 0) {
66
intro(`Welcome to the Nizzy CLI`);
77

8+
const user = process.env.USER || process.env.USERNAME || 'there';
9+
810
const command = await select({
9-
message: `Hey ${process.env.USER}, what do you want to do?`,
11+
message: `Hey ${user}, what do you want to do?`,
1012
options: Object.values(commands).map((command) => ({
1113
label: command.description,
1214
value: command.id,

0 commit comments

Comments
 (0)