Skip to content

Commit b6b3283

Browse files
0.7.1
feat: Add verbosity support (#46)
1 parent 35a04e3 commit b6b3283

16 files changed

Lines changed: 36 additions & 18 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g codify
1818
$ codify COMMAND
1919
running command...
2020
$ codify (--version)
21-
codify/0.7.0 darwin-arm64 node-v20.15.1
21+
codify/0.7.1 darwin-arm64 node-v20.15.1
2222
$ codify --help [COMMAND]
2323
USAGE
2424
$ codify COMMAND
@@ -74,7 +74,7 @@ EXAMPLES
7474
$ codify apply -S <sudo password>
7575
```
7676

77-
_See code: [src/commands/apply.ts](https://github.com/kevinwang5658/codify/blob/v0.7.0/src/commands/apply.ts)_
77+
_See code: [src/commands/apply.ts](https://github.com/kevinwang5658/codify/blob/v0.7.1/src/commands/apply.ts)_
7878

7979
## `codify destroy`
8080

@@ -113,7 +113,7 @@ EXAMPLES
113113
$ codify destroy
114114
```
115115

116-
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.7.0/src/commands/destroy.ts)_
116+
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.7.1/src/commands/destroy.ts)_
117117

118118
## `codify help [COMMAND]`
119119

@@ -189,7 +189,7 @@ EXAMPLES
189189
$ codify import \*
190190
```
191191

192-
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.7.0/src/commands/import.ts)_
192+
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.7.1/src/commands/import.ts)_
193193

194194
## `codify init`
195195

@@ -217,7 +217,7 @@ EXAMPLES
217217
$ codify init
218218
```
219219

220-
_See code: [src/commands/init.ts](https://github.com/kevinwang5658/codify/blob/v0.7.0/src/commands/init.ts)_
220+
_See code: [src/commands/init.ts](https://github.com/kevinwang5658/codify/blob/v0.7.1/src/commands/init.ts)_
221221

222222
## `codify plan`
223223

@@ -254,7 +254,7 @@ EXAMPLES
254254
$ codify plan -p ../
255255
```
256256

257-
_See code: [src/commands/plan.ts](https://github.com/kevinwang5658/codify/blob/v0.7.0/src/commands/plan.ts)_
257+
_See code: [src/commands/plan.ts](https://github.com/kevinwang5658/codify/blob/v0.7.1/src/commands/plan.ts)_
258258

259259
## `codify update [CHANNEL]`
260260

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"start:dev": "./bin/dev.js",
124124
"start:vm": "npm run build && npm run pack:macos && npm run start:vm"
125125
},
126-
"version": "0.7.0",
126+
"version": "0.7.1",
127127
"bugs": "https://github.com/kevinwang5658/codify/issues",
128128
"keywords": [
129129
"oclif"

src/commands/apply.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ For more information, visit: https://docs.codifycli.com/commands/apply
4444

4545
await ApplyOrchestrator.run({
4646
path: flags.path,
47+
verbosityLevel: flags.debug ? 3 : 0,
4748
// secure: flags.secure,
4849
}, this.reporter);
4950

src/commands/destroy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ For more information, visit: https://docs.codifycli.com/commands/destory`
4747
}
4848

4949
await DestroyOrchestrator.run({
50+
verbosityLevel: flags.debug ? 3 : 0,
5051
typeIds: args,
5152
path: flags.path,
5253
}, this.reporter)

src/commands/import.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ For more information, visit: https://docs.codifycli.com/commands/import`
6161
const cleanedArgs = await this.cleanupZshStarExpansion(args);
6262

6363
await ImportOrchestrator.run({
64+
verbosityLevel: flags.debug ? 3 : 0,
6465
typeIds: cleanedArgs,
6566
path: resolvedPath,
6667
secureMode: flags.secure,

src/commands/init.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ For more information, visit: https://docs.codifycli.com/commands/init`
2525
]
2626

2727
public async run(): Promise<void> {
28-
await InitializeOrchestrator.run(this.reporter);
28+
const { flags } = await this.parse(Init)
29+
30+
await InitializeOrchestrator.run({
31+
verbosityLevel: flags.debug ? 3 : 0,
32+
},this.reporter);
2933
}
3034
}

src/commands/plan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ For more information, visit: https://docs.codifycli.com/commands/plan`
3030
const { flags } = await this.parse(Plan)
3131

3232
await PlanOrchestrator.run({
33+
verbosityLevel: flags.debug ? 3 : 0,
3334
path: flags.path,
3435
secureMode: flags.secure,
3536
}, this.reporter);

src/common/initialize-plugins.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Reporter } from '../ui/reporters/reporter.js';
1111
export interface InitializeArgs {
1212
path?: string;
1313
secure?: boolean;
14+
verbosityLevel?: number;
1415
transformProject?: (project: Project) => Project | Promise<Project>;
1516
allowEmptyProject?: boolean;
1617
}
@@ -37,7 +38,7 @@ export class PluginInitOrchestrator {
3738

3839
ctx.subprocessStarted(SubProcessName.INITIALIZE_PLUGINS)
3940
const pluginManager = new PluginManager();
40-
const typeIdsToDependenciesMap = await pluginManager.initialize(project, args.secure);
41+
const typeIdsToDependenciesMap = await pluginManager.initialize(project, args.secure, args.verbosityLevel);
4142
ctx.subprocessFinished(SubProcessName.INITIALIZE_PLUGINS)
4243

4344
return { typeIdsToDependenciesMap, pluginManager, project };

src/orchestrators/apply.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { PlanOrchestrator } from './plan.js';
66
export interface ApplyArgs {
77
path?: string;
88
secure?: boolean;
9+
verbosityLevel?: number;
910
}
1011

1112
export const ApplyOrchestrator = {

src/orchestrators/destroy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface DestroyArgs {
1212
typeIds: string[];
1313
path?: string;
1414
secureMode?: boolean;
15+
verbosityLevel?: number;
1516
}
1617

1718
export class DestroyOrchestrator {

0 commit comments

Comments
 (0)