Skip to content

Commit 8ddb124

Browse files
committed
fix: Fixed import output
1 parent 539cecc commit 8ddb124

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 5 additions & 5 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.5.0 darwin-arm64 node-v20.15.1
21+
codify/0.5.1 darwin-arm64 node-v20.15.1
2222
$ codify --help [COMMAND]
2323
USAGE
2424
$ codify COMMAND
@@ -62,7 +62,7 @@ EXAMPLES
6262
$ codify apply --path ~
6363
```
6464

65-
_See code: [src/commands/apply/index.ts](https://github.com/kevinwang5658/codify/blob/v0.5.0/src/commands/apply/index.ts)_
65+
_See code: [src/commands/apply/index.ts](https://github.com/kevinwang5658/codify/blob/v0.5.1/src/commands/apply/index.ts)_
6666

6767
## `codify destroy`
6868

@@ -89,7 +89,7 @@ EXAMPLES
8989
$ codify destroy homebrew nvm
9090
```
9191

92-
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.5.0/src/commands/destroy.ts)_
92+
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.5.1/src/commands/destroy.ts)_
9393

9494
## `codify help [COMMAND]`
9595

@@ -136,7 +136,7 @@ EXAMPLES
136136
$ codify import homebrew nvm
137137
```
138138

139-
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.5.0/src/commands/import.ts)_
139+
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.5.1/src/commands/import.ts)_
140140

141141
## `codify plan`
142142

@@ -164,7 +164,7 @@ EXAMPLES
164164
$ codify plan
165165
```
166166

167-
_See code: [src/commands/plan/index.ts](https://github.com/kevinwang5658/codify/blob/v0.5.0/src/commands/plan/index.ts)_
167+
_See code: [src/commands/plan/index.ts](https://github.com/kevinwang5658/codify/blob/v0.5.1/src/commands/plan/index.ts)_
168168

169169
## `codify update [CHANNEL]`
170170

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"start:dev": "./bin/dev.js",
113113
"start:vm": "npm run build && npm run pack:macos && npm run start:vm"
114114
},
115-
"version": "0.5.0",
115+
"version": "0.5.1",
116116
"bugs": "https://github.com/kevinwang5658/codify/issues",
117117
"keywords": [
118118
"oclif"

src/ui/components/import/import-result.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function ImportResultComponent(props: {
1414
<Text>Codify Import</Text>
1515
</Box>
1616
<br/>
17-
<Text>{ JSON.stringify(result, null, 2)}</Text>
17+
<Text>{ JSON.stringify(result.map((r) => r.raw), null, 2)}</Text>
1818
{
1919
errors.length > 0 && (<Box flexDirection="column">
2020
<Text bold={true} color={'red'}>The following configs failed to import:</Text>

src/ui/reporters/debug-reporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class DebugReporter implements Reporter {
5959

6060
displayImportResult(importResult: ImportResult) {
6161
console.log();
62-
console.log(JSON.stringify(importResult.result, null, 2));
62+
console.log(JSON.stringify(importResult.result.map((r) => r.raw), null, 2));
6363

6464
if (importResult.errors.length > 0) {
6565
console.log('The following configs failed to import:')

src/ui/reporters/plain-reporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class PlainReporter implements Reporter {
5454

5555
displayImportResult(importResult: ImportResult) {
5656
console.log();
57-
console.log(JSON.stringify(importResult.result, null, 2));
57+
console.log(JSON.stringify(importResult.result.map((r) => r.raw), null, 2));
5858

5959
if (importResult.errors.length > 0) {
6060
console.log('The following configs failed to import:')

0 commit comments

Comments
 (0)