dbt-labs / dbt-labs/dbt-autofix

Pipe `--json` to `jq` for `packages` sub-command

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
88
Forks
19
Avg merge
1d 1h
Merged PRs (30d)
13

Description

I was trying to do something like this:

```shell
dbt-autofix deprecations --json | jq .
```

which worked:

```
Warning: Path /Users/dbeatty/jaffle-minis/minis/010a2_autofix_packages/seeds does not exist
Warning: Path /Users/dbeatty/jaffle-minis/minis/010a2_autofix_packages/macros does not exist
Warning: Path /Users/dbeatty/jaffle-minis/minis/010a2_autofix_packages/tests does not exist
Warning: Path /Users/dbeatty/jaffle-minis/minis/010a2_autofix_packages/analyses does not exist
Warning: Path /Users/dbeatty/jaffle-minis/minis/010a2_autofix_packages/snapshots does not exist
{
"mode": "complete"
}
```

But this didn't:

```shell
dbt-autofix packages --force-upgrade --json | jq .
```

```
jq: parse error: Invalid numeric literal at line 1, column 12
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.