You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/app/commands/install/command.py
+59-33Lines changed: 59 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,17 @@ def install_callback(
22
22
config_file: str=typer.Option(
23
23
None, "--config-file", "-c", help="Path to custom config file (defaults to built-in config)"
24
24
),
25
+
development: bool=typer.Option(
26
+
False,
27
+
"--development",
28
+
"-D",
29
+
help="Use development workflow (local setup, dev compose, dev env)",
30
+
),
31
+
dev_path: str=typer.Option(
32
+
None,
33
+
"--dev-path",
34
+
help="Installation directory for development workflow (defaults to current directory)",
35
+
),
25
36
api_domain: str=typer.Option(
26
37
None,
27
38
"--api-domain",
@@ -34,36 +45,55 @@ def install_callback(
34
45
"-vd",
35
46
help="The domain where the nixopus view will be accessible (e.g. nixopus.com), if not provided you can use the ip address of the server and the port (e.g. 192.168.1.100:80)",
36
47
),
37
-
repo: str=typer.Option(
38
-
None, "--repo", "-r", help="GitHub repository URL to clone (defaults to config value)"
39
-
),
40
-
branch: str=typer.Option(
41
-
None, "--branch", "-b", help="Git branch to clone (defaults to config value)"
42
-
),
48
+
repo: str=typer.Option(None, "--repo", "-r", help="GitHub repository URL to clone (defaults to config value)"),
49
+
branch: str=typer.Option(None, "--branch", "-b", help="Git branch to clone (defaults to config value)"),
43
50
):
44
51
"""Install Nixopus for production"""
45
52
ifctx.invoked_subcommandisNone:
46
53
logger=Logger(verbose=verbose)
47
-
install=Install(
48
-
logger=logger,
49
-
verbose=verbose,
50
-
timeout=timeout,
51
-
force=force,
52
-
dry_run=dry_run,
53
-
config_file=config_file,
54
-
api_domain=api_domain,
55
-
view_domain=view_domain,
56
-
repo=repo,
57
-
branch=branch,
58
-
development=False,
59
-
)
60
-
install.run()
54
+
ifdevelopment:
55
+
# Warn when incompatible production-only options are provided alongside --development
56
+
ifapi_domainorview_domain:
57
+
logger.warning("Ignoring --api-domain/--view-domain in development mode")
0 commit comments