1
1
import { dirname , resolve } from 'path'
2
2
3
3
import { Constructor } from '@dandi/common'
4
- import { AmbientInjectableScanner , Container , LogLevel } from '@dandi/core'
4
+ import { AmbientInjectableScanner , DandiApplication , LogLevel } from '@dandi/core'
5
5
import { ConsoleLogListener , LoggingModule } from '@dandi/core/logging'
6
6
import { PrettyColorsLogging } from '@dandi/logging'
7
7
@@ -10,23 +10,23 @@ import { Command } from 'commander'
10
10
import { Builder } from './builder'
11
11
import { BuilderProject } from './builder-project'
12
12
import { BuilderProjectOptions } from './builder-project-options'
13
- import { ActionHost , Actions , CommandAction , CommandInfo } from './command-action'
13
+ import { ActionHost , CommandAction , CommandInfo } from './command-action'
14
14
import { CommandRunner } from './command-runner'
15
15
import { Publisher } from './publisher'
16
16
17
17
export type CommanderArgs = ( string | Command ) [ ]
18
18
19
19
export class CommandUtil {
20
20
21
- public static projectAction ( actionName : keyof Actions < BuilderProject > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
21
+ public static projectAction ( actionName : CommandAction < BuilderProject > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
22
22
return this . action ( BuilderProject , actionName , start )
23
23
}
24
24
25
- public static builderAction ( actionName : keyof Actions < Builder > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
25
+ public static builderAction ( actionName : CommandAction < Builder > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
26
26
return this . action ( Builder , actionName , start )
27
27
}
28
28
29
- public static publisherAction ( actionName : keyof Actions < Publisher > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
29
+ public static publisherAction ( actionName : CommandAction < Publisher > , start : number ) : ( ...args : CommanderArgs ) => Promise < void > {
30
30
return this . action ( Publisher , actionName , start )
31
31
}
32
32
@@ -42,7 +42,7 @@ export class CommandUtil {
42
42
args : cmdArgs ,
43
43
}
44
44
45
- const container = new Container ( {
45
+ const container = new DandiApplication ( {
46
46
providers : [
47
47
AmbientInjectableScanner ,
48
48
CommandRunner ,
0 commit comments