Skip to content

Commit 39befdd

Browse files
committed
fix: set access token prompt type to hide
1 parent eb11aca commit 39befdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {setAccessTokenConfig} from './utils'
66

77
export default abstract class HackMDCommand extends Command {
88
async getAPIClient() {
9-
const token = config.accessToken || await CliUx.ux.prompt('Enter your access token')
9+
const token = config.accessToken || await CliUx.ux.prompt('Enter your access token', {
10+
type: 'hide'
11+
})
1012
const APIClient = new API(token, config.hackmdAPIEndpointURL)
1113

1214
try {

0 commit comments

Comments
 (0)