Skip to content

Commit 4a04d5b

Browse files
authored
feat: add list-networks command (#277)
1 parent 6b650c8 commit 4a04d5b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

op-conductor-ops/op-conductor-ops.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ def get_network(network: str):
5353
network_obj.update()
5454
return network_obj
5555

56+
@app.command()
57+
def list_networks():
58+
"""List all the networks in the config"""
59+
table = Table(
60+
"Networks",
61+
)
62+
for net in NETWORKS.keys():
63+
table.add_row(
64+
net
65+
)
66+
console.print(table)
67+
5668

5769
@app.command()
5870
def status(network: str):

0 commit comments

Comments
 (0)