feat: automated most of operator config detection
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { envParser } from '@aklive2d/libs'
|
||||
import { build, init } from './index.ts'
|
||||
import { init } from './libs/initer.ts'
|
||||
import { build } from './libs/builder.ts'
|
||||
import { update } from './libs/updater.ts'
|
||||
|
||||
type Args = {
|
||||
mode: string
|
||||
@@ -27,6 +29,9 @@ async function main() {
|
||||
case 'build':
|
||||
await build(name)
|
||||
break
|
||||
case 'update':
|
||||
await update()
|
||||
break
|
||||
case 'init':
|
||||
if (!name.length) {
|
||||
throw new Error('Please set the operator name.')
|
||||
|
||||
Reference in New Issue
Block a user