pipen-cli-ref 1.0.1__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pipen_cli_ref-1.0.1 → pipen_cli_ref-1.0.2}/PKG-INFO +1 -1
- {pipen_cli_ref-1.0.1 → pipen_cli_ref-1.0.2}/pipen_cli_ref.py +5 -6
- {pipen_cli_ref-1.0.1 → pipen_cli_ref-1.0.2}/pyproject.toml +1 -1
- {pipen_cli_ref-1.0.1 → pipen_cli_ref-1.0.2}/LICENSE +0 -0
- {pipen_cli_ref-1.0.1 → pipen_cli_ref-1.0.2}/README.md +0 -0
|
@@ -13,19 +13,18 @@ from __future__ import annotations
|
|
|
13
13
|
from typing import TYPE_CHECKING, Type
|
|
14
14
|
|
|
15
15
|
import sys
|
|
16
|
-
import asyncio
|
|
17
16
|
import textwrap
|
|
18
17
|
|
|
19
18
|
import argx
|
|
20
19
|
from pipen.utils import load_pipeline
|
|
21
|
-
from pipen.cli import
|
|
20
|
+
from pipen.cli import AsyncCLIPlugin
|
|
22
21
|
from pipen_annotate import annotate
|
|
23
22
|
|
|
24
23
|
if TYPE_CHECKING:
|
|
25
24
|
from pipen import Proc
|
|
26
25
|
from pipen_annotate.sections import Mixin
|
|
27
26
|
|
|
28
|
-
__version__ = "1.0.
|
|
27
|
+
__version__ = "1.0.2"
|
|
29
28
|
|
|
30
29
|
args = argx.ArgumentParser(
|
|
31
30
|
description=("Make API reference documentation for pipen pipeline/processes.")
|
|
@@ -121,7 +120,7 @@ async def main(args: argx.Namespace) -> None:
|
|
|
121
120
|
generate_doc(proc, args, i + 1, total)
|
|
122
121
|
|
|
123
122
|
|
|
124
|
-
class PipenCliRefPlugin(
|
|
123
|
+
class PipenCliRefPlugin(AsyncCLIPlugin):
|
|
125
124
|
"""Make API reference documentation for pipen pipeline/processes."""
|
|
126
125
|
|
|
127
126
|
version = __version__
|
|
@@ -182,6 +181,6 @@ class PipenCliRefPlugin(CLIPlugin):
|
|
|
182
181
|
help="Replace placeholders in the docstring in the format of `old=new`."
|
|
183
182
|
)
|
|
184
183
|
|
|
185
|
-
def exec_command(self, args: argx.Namespace) -> None:
|
|
184
|
+
async def exec_command(self, args: argx.Namespace) -> None:
|
|
186
185
|
"""Execute the command"""
|
|
187
|
-
|
|
186
|
+
await main(args)
|
|
File without changes
|
|
File without changes
|