File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function buildConfigLines(): string[] {
150150 return lines
151151}
152152
153- export function statusCommand ( opts : StatusOptions = { } ) : void {
153+ export async function statusCommand ( opts : StatusOptions = { } ) : Promise < void > {
154154 const allSkills = [ ...iterateSkills ( { scope : opts . global ? 'global' : 'all' } ) ]
155155
156156 // Config section
@@ -184,7 +184,7 @@ export function statusCommand(opts: StatusOptions = {}): void {
184184 }
185185 }
186186
187- const buildPackageLines = ( pkgs : Map < string , TrackedPackage > ) : string [ ] => {
187+ const buildPackageLines = async ( pkgs : Map < string , TrackedPackage > ) : Promise < string [ ] > => {
188188 const lines : string [ ] = [ ]
189189 for ( const [ , pkg ] of pkgs ) {
190190 const { info } = pkg
@@ -236,12 +236,12 @@ export function statusCommand(opts: StatusOptions = {}): void {
236236
237237 if ( ! opts . global && localPkgs . size > 0 ) {
238238 p . log . step ( `${ bold ( 'Local' ) } (project)` )
239- p . log . message ( buildPackageLines ( localPkgs ) . join ( '\n' ) )
239+ p . log . message ( ( await buildPackageLines ( localPkgs ) ) . join ( '\n' ) )
240240 }
241241
242242 if ( globalPkgs . size > 0 ) {
243243 p . log . step ( bold ( 'Global' ) )
244- p . log . message ( buildPackageLines ( globalPkgs ) . join ( '\n' ) )
244+ p . log . message ( ( await buildPackageLines ( globalPkgs ) ) . join ( '\n' ) )
245245 }
246246
247247 if ( ! opts . global && localPkgs . size === 0 ) {
You can’t perform that action at this time.
0 commit comments