mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-06-21 19:25:33 +08:00
make init do index
This commit is contained in:
parent
92a54621f0
commit
6029bd2c3d
2 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,8 @@ class RPSL:
|
|||
related.add(key)
|
||||
|
||||
for i in related:
|
||||
if i in keys:
|
||||
continue
|
||||
yield self.load_file(self._files[i])
|
||||
|
||||
def load_file(self, fn: str) -> FileDOM:
|
||||
|
|
|
@ -19,6 +19,7 @@ import argparse
|
|||
from typing import List, Dict, Generator, Tuple, Set, TypeVar
|
||||
|
||||
from dn42.rpsl import Config, FileDOM, SchemaDOM
|
||||
import rpsl_index
|
||||
|
||||
Group = TypeVar("Group", set, tuple)
|
||||
|
||||
|
@ -62,6 +63,8 @@ def run(args: List[str], env: Dict[str, str]) -> int:
|
|||
print(rpsl, file=f)
|
||||
|
||||
print(f"Created: {rpsl.config_file}", file=sys.stderr)
|
||||
rpsl_index.run(args, env)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue