Skip to content

Commit 81020c1

Browse files
authored
docs: integrate the SDM readme into pdoc (targets #620) (#621)
1 parent 61b539d commit 81020c1

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

airbyte_cdk/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
- `airbyte_cdk.models.airbyte_protocol`
3333
- `airbyte_cdk.models.airbyte_protocol_serializers`
3434
35+
## Using the CLI (`airbyte_cdk.cli`)
36+
37+
The Airbyte CDK provides two command-line interfaces (CLIs) for interacting with the framework.
38+
39+
- `airbyte-cdk`: This is the main CLI for the Airbyte CDK. It provides commands for building
40+
and testing connectors, as well as other utilities. See the `airbyte_cdk.cli.airbyte_cdk` module
41+
for more details.
42+
- `source-declarative-manifest`: This command allows you to run declarative manifests directly.
43+
See the `airbyte_cdk.cli.source_declarative_manifest` module for more details.
44+
3545
---
3646
3747
API Reference

airbyte_cdk/cli/source_declarative_manifest/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
.. include:: ./README.md
3+
:start-line: 2
4+
"""
5+
16
from airbyte_cdk.cli.source_declarative_manifest._run import run
27

38
__all__ = [

airbyte_cdk/cli/source_declarative_manifest/_run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,5 +299,9 @@ def _register_components_from_file(filepath: str) -> None:
299299

300300

301301
def run() -> None:
302+
"""Run the `source-declarative-manifest` CLI.
303+
304+
Args are detected from the command line, and the appropriate command is executed.
305+
"""
302306
args: list[str] = sys.argv[1:]
303307
handle_command(args)

0 commit comments

Comments
 (0)