update checker middleware
Цей коміт міститься в:
1 джерело
9204eb81be
коміт
04412d7cbc
3 files changed
+16
-13
No files matched your search
@@ -4,6 +4,8 @@ import { input, select } from '@inquirer/prompts'
|
||||
import clone from 'git-clone'
|
||||
import path from 'node:path'
|
||||
|
||||
import { checkForUpdate } from '../utils/update'
|
||||
|
||||
function builder(yargs: Argv) {
|
||||
return yargs
|
||||
.option('projectName', {
|
||||
@@ -18,6 +20,7 @@ function builder(yargs: Argv) {
|
||||
type: 'string',
|
||||
demandOption: false,
|
||||
})
|
||||
.middleware(async () => await checkForUpdate())
|
||||
}
|
||||
|
||||
async function handler(args: ArgumentsCamelCase) {
|
||||
|
||||
Reference in new issue
Заблокувати користувача