Skip to content

Commit 9a3f92d

Browse files
author
k9ert
authored
Feature: --devstatus-threshold for cli_server (#1945)
1 parent 59779fc commit 9a3f92d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/cryptoadvance/specter/cli/cli_server.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ def cli():
5858
is_flag=True,
5959
help="Start the hwi-bridge to use your HWWs with a remote specter.",
6060
)
61+
@click.option(
62+
"--devstatus-threshold",
63+
type=click.Choice(["alpha", "beta", "prod"], case_sensitive=False),
64+
default=None,
65+
help="Decide which maturity your extensions need to have in order to load them.",
66+
)
6167
@click.option(
6268
"--specter-data-folder",
6369
default=None,
@@ -78,6 +84,7 @@ def server(
7884
filelog,
7985
tor,
8086
hwibridge,
87+
devstatus_threshold,
8188
specter_data_folder,
8289
config,
8390
):
@@ -104,6 +111,10 @@ def server(
104111
if port:
105112
app.config["PORT"] = int(port)
106113

114+
# devstatus_threshold
115+
if devstatus_threshold is not None:
116+
app.config["SERVICES_DEVSTATUS_THRESHOLD"] = devstatus_threshold
117+
107118
# certificates
108119
if cert:
109120
logger.info("CERT:" + str(cert))

0 commit comments

Comments
 (0)