File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export interface ProfileOptions {
17
17
}
18
18
19
19
export const profile = createCommand ( 'profile' )
20
+ . alias ( 'p' )
20
21
. argument ( '[username]' , 'the username of user' )
21
22
. description ( 'query user profile' )
22
23
. option ( '-r, --raw' , 'output raw data' )
@@ -110,7 +111,20 @@ export const queryProfile = async ({
110
111
111
112
texts . push (
112
113
[ ] ,
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
+ : [ ]
114
128
)
115
129
116
130
const lines = texts . flatMap ( ( fields ) =>
You can’t perform that action at this time.
0 commit comments