mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: align paper lookup scope and command signatures
This commit is contained in:
parent
c534e481c7
commit
317472eb35
4 changed files with 10 additions and 4 deletions
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
from paperforge.retrieval import gateway
|
||||
|
||||
|
||||
def run(args) -> int:
|
||||
def run(args: argparse.Namespace) -> int:
|
||||
"""Execute ``content-discovery`` via the Layer 4 gateway."""
|
||||
result = gateway.route_gateway(
|
||||
args.vault_path,
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
from paperforge.retrieval import gateway
|
||||
|
||||
|
||||
def run(args) -> int:
|
||||
def run(args: argparse.Namespace) -> int:
|
||||
"""Execute ``paper-lookup`` via the Layer 4 gateway."""
|
||||
result = gateway.route_gateway(
|
||||
args.vault_path,
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
|
||||
from paperforge import __version__ as PF_VERSION
|
||||
|
|
@ -9,7 +10,7 @@ from paperforge.core.result import PFResult
|
|||
from paperforge.retrieval import gateway
|
||||
|
||||
|
||||
def run(args) -> int:
|
||||
def run(args: argparse.Namespace) -> int:
|
||||
"""Execute ``paper-navigation`` via the Layer 4 gateway."""
|
||||
result = gateway.route_gateway(
|
||||
args.vault_path,
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from paperforge.retrieval import gateway
|
||||
|
||||
|
||||
def run(args) -> int:
|
||||
def run(args: argparse.Namespace) -> int:
|
||||
"""Execute ``scoped-fetch`` via the Layer 4 gateway."""
|
||||
vault = Path(args.vault_path)
|
||||
result = gateway.route_gateway(
|
||||
|
|
|
|||
Loading…
Reference in a new issue