Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Apr 12, 2023
1 parent f200d2e commit 4015c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/reference/programmatic-invocations.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Each command returns a `dbtRunnerResult` object, which has three attributes:
There is a 1:1 correspondence between [CLI exit codes](reference/exit-codes) and the `dbtRunnerResult` returned by a programmatic invocation:

| Scenario | CLI Exit Code | `success` | `result` | `exception` |
|---------------------------------------------------------------------------------------------|---------------|-----------|-------------------|-------------|
|---------------------------------------------------------------------------------------------|--------------:|-----------|-------------------|-------------|
| Invocation completed without error | 0 | `True` | varies by command | `None` |
| Invocation completed with at least one handled error (e.g. test failure, model build error) | 1 | `False` | varies by command | `None` |
| Unhandled error. Invocation did not complete, and returns no results. | 2 | `False` | `None` | Exception |
Expand Down Expand Up @@ -94,7 +94,7 @@ dbt.invoke(["list"])

### Overriding parameters

Pass in parameters as Pythonic `**kwargs`, instead of a list of CLI-style strings. At present, dbt will not do any validation or type coercion on your inputs. The subcommand must be specified, in a list, as the first positional argument.
Pass in parameters as keyword arguments, instead of a list of CLI-style strings. At present, dbt will not do any validation or type coercion on your inputs. The subcommand must be specified, in a list, as the first positional argument.
```python
from dbt.cli.main import dbtRunner
dbt = dbtRunner()
Expand Down

0 comments on commit 4015c09

Please sign in to comment.