mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-08-06 09:46:23 +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)
|
related.add(key)
|
||||||
|
|
||||||
for i in related:
|
for i in related:
|
||||||
|
if i in keys:
|
||||||
|
continue
|
||||||
yield self.load_file(self._files[i])
|
yield self.load_file(self._files[i])
|
||||||
|
|
||||||
def load_file(self, fn: str) -> FileDOM:
|
def load_file(self, fn: str) -> FileDOM:
|
||||||
|
|
|
@ -19,6 +19,7 @@ import argparse
|
||||||
from typing import List, Dict, Generator, Tuple, Set, TypeVar
|
from typing import List, Dict, Generator, Tuple, Set, TypeVar
|
||||||
|
|
||||||
from dn42.rpsl import Config, FileDOM, SchemaDOM
|
from dn42.rpsl import Config, FileDOM, SchemaDOM
|
||||||
|
import rpsl_index
|
||||||
|
|
||||||
Group = TypeVar("Group", set, tuple)
|
Group = TypeVar("Group", set, tuple)
|
||||||
|
|
||||||
|
@ -62,6 +63,8 @@ def run(args: List[str], env: Dict[str, str]) -> int:
|
||||||
print(rpsl, file=f)
|
print(rpsl, file=f)
|
||||||
|
|
||||||
print(f"Created: {rpsl.config_file}", file=sys.stderr)
|
print(f"Created: {rpsl.config_file}", file=sys.stderr)
|
||||||
|
rpsl_index.run(args, env)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue