File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -118,5 +118,37 @@ for (const val of opts._) {
118118 print ( `Bio: ${ user . bio } ` ) ;
119119 print ( `Link: ${ user . link } ` ) ;
120120
121+ print ( `Public repos: ${ user . repos . count } ` ) ;
122+ if ( opts . r ) {
123+ await user . fetch ( "repos" ) ;
124+
125+ for ( const idx in user . repos . arr )
126+ print ( ` | ${ parseInt ( idx ) + 1 } ${ user . repos . arr [ idx ] } ` ) ;
127+ }
128+
129+ print ( `Public gists: ${ user . gists . count } ` ) ;
130+ if ( opts . g ) {
131+ await user . fetch ( "gists" ) ;
132+
133+ for ( const idx in user . gists . arr )
134+ print ( ` | ${ parseInt ( idx ) + 1 } ${ user . gists . arr [ idx ] } ` ) ;
135+ }
136+
137+ print ( `Public followers: ${ user . followers . count } ` ) ;
138+ if ( opts . followers ) {
139+ await user . fetch ( "followers" ) ;
140+
141+ for ( const val of user . followers . arr )
142+ print ( ` | @${ val } ` ) ;
143+ }
144+
145+ print ( `Public following: ${ user . following . count } ` ) ;
146+ if ( opts . following ) {
147+ await user . fetch ( "following" ) ;
148+
149+ for ( const val of user . following . arr )
150+ print ( ` | @${ val } ` ) ;
151+ }
152+
121153 print ( ) ;
122154}
You can’t perform that action at this time.
0 commit comments