Skip to content

Commit a258f9f

Browse files
committed
feat: route contract and estate scanner commands
1 parent e6649e9 commit a258f9f

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

bin/sourceosctl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,36 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
99
# Lightweight plugin routing for newer command groups while keeping the core
1010
# argparse surface stable. These command groups are non-mutating plan/probe
1111
# surfaces and own their own subparsers.
12+
if len(sys.argv) > 1 and sys.argv[1] == "contract":
13+
from sourceosctl.commands.contracts import contract_main
14+
15+
sys.exit(contract_main(sys.argv[2:]))
16+
17+
if len(sys.argv) > 1 and sys.argv[1] == "repo":
18+
from sourceosctl.commands.contracts import repo_main
19+
20+
sys.exit(repo_main(sys.argv[2:]))
21+
22+
if len(sys.argv) > 1 and sys.argv[1] == "estate":
23+
from sourceosctl.commands.contracts import estate_main
24+
25+
sys.exit(estate_main(sys.argv[2:]))
26+
27+
if len(sys.argv) > 1 and sys.argv[1] == "graph":
28+
from sourceosctl.commands.contracts import graph_main
29+
30+
sys.exit(graph_main(sys.argv[2:]))
31+
32+
if len(sys.argv) > 1 and sys.argv[1] == "sync":
33+
from sourceosctl.commands.contracts import sync_main
34+
35+
sys.exit(sync_main(sys.argv[2:]))
36+
37+
if len(sys.argv) > 1 and sys.argv[1] == "policy":
38+
from sourceosctl.commands.contracts import policy_main
39+
40+
sys.exit(policy_main(sys.argv[2:]))
41+
1242
if len(sys.argv) > 1 and sys.argv[1] == "network":
1343
from sourceosctl.commands.network import network_main
1444

0 commit comments

Comments
 (0)