File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22const { sort } = require ( 'semver' ) ;
3- const path = require ( 'path' ) ;
3+ const path = require ( 'node: path' ) ;
44const GitHubUpdater = require ( '../github-updater' ) ;
55const UpdateCommand =
66 require ( '@oclif/plugin-update/lib/commands/update' ) . default ;
7- // const { printTable } = require('@oclif/table');
87
98class GithubUpdatecommand extends UpdateCommand {
109 async run ( ) {
10+ const { printTable } = await import ( '@oclif/table' ) ;
1111 const { args, flags } = await this . parse ( UpdateCommand ) ;
1212 const updater = new GitHubUpdater ( this . config ) ;
1313 if ( flags . available ) {
@@ -22,14 +22,13 @@ class GithubUpdatecommand extends UpdateCommand {
2222 return { version, location } ;
2323 } ) ;
2424
25- // printTable({
26- // columns: [
27- // { key: 'version' },
28- // { key: 'location' },
29- // ],
30- // data: table,
31- // });
32- console . log ( table ) ;
25+ printTable ( {
26+ columns : [
27+ { key : 'version' } ,
28+ { key : 'location' } ,
29+ ] ,
30+ data : table ,
31+ } ) ;
3332 return ;
3433 }
3534
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
3+ "allowJs" : true ,
34 "declaration" : true ,
45 "module" : " Node16" ,
56 "outDir" : " dist" ,
You can’t perform that action at this time.
0 commit comments