Skip to content

Commit 9477615

Browse files
committed
feat: profile more links
1 parent 431c9bd commit 9477615

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/modules/user/profile.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface ProfileOptions {
1717
}
1818

1919
export const profile = createCommand('profile')
20+
.alias('p')
2021
.argument('[username]', 'the username of user')
2122
.description('query user profile')
2223
.option('-r, --raw', 'output raw data')
@@ -110,7 +111,20 @@ export const queryProfile = async ({
110111

111112
texts.push(
112113
[],
113-
[colors.underline(`https://web.okjike.com/u/${result.user.username}`)]
114+
[
115+
' Web',
116+
colors.underline(`https://web.okjike.com/u/${result.user.username}`),
117+
],
118+
[
119+
'Mobile',
120+
colors.underline(`https://m.okjike.com/users/${result.user.username}`),
121+
],
122+
process.platform === 'darwin'
123+
? [
124+
' macOS',
125+
colors.underline(`jike://page.jk/user/${result.user.username}`),
126+
]
127+
: []
114128
)
115129

116130
const lines = texts.flatMap((fields) =>

0 commit comments

Comments
 (0)