Skip to content

Commit 3ae2503

Browse files
committed
chore: add underline and default to 'yes'
1 parent 6d6a6c7 commit 3ae2503

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cli/src/cli.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import process from 'node:process'
33
import { spawn } from 'node:child_process'
44
import * as p from '@clack/prompts'
5+
import pc from 'picocolors'
56
import { defineCommand, runMain } from 'citty'
67
import { listen } from 'listhen'
78
import { toNodeListener } from 'h3'
@@ -47,10 +48,12 @@ const main = defineCommand({
4748
initLogger()
4849

4950
// Warning message and accept prompt
50-
logWarning('This allows npmx to access your npm cli and any authenticated contexts.')
51+
logWarning(
52+
`This allows ${pc.underline('npmx.dev')} to access your npm cli and any authenticated contexts.`,
53+
)
5154
const accept = await p.confirm({
5255
message: 'Do you accept?',
53-
initialValue: false,
56+
initialValue: true,
5457
})
5558

5659
if (!accept || p.isCancel(accept)) {

0 commit comments

Comments
 (0)