MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / main

Function main

misc/python/materialize/cli/run.py:92–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def main() -> int:
93 parser = argparse.ArgumentParser(
94 prog="run",
95 description="""Build and run a core service or test.
96 Wraps `cargo run` and `cargo test` with Materialize-specific logic.""",
97 )
98 parser.add_argument(
99 "program",
100 help="the name of the program to run",
101 choices=[*KNOWN_PROGRAMS, "test"],
102 )
103 parser.add_argument(
104 "args",
105 help="Arguments to pass to the program",
106 nargs="*",
107 )
108 parser.add_argument(
109 "--reset",
110 help="Delete data from prior runs of the program",
111 action="store_true",
112 )
113 parser.add_argument(
114 "--postgres",
115 help="Postgres/CockroachDB connection string",
116 default=os.getenv("MZDEV_POSTGRES", DEFAULT_POSTGRES),
117 )
118 parser.add_argument(
119 "--blob",
120 help="Blob storage connection string",
121 default=os.getenv("MZDEV_BLOB", DEFAULT_BLOB),
122 )
123 parser.add_argument(
124 "--release",
125 help="Build artifacts in release mode, with optimizations",
126 action="store_true",
127 )
128 parser.add_argument(
129 "--optimized",
130 help="Build artifacts in optimized mode, with optimizations (but no LTO and debug symbols)",
131 action="store_true",
132 )
133 parser.add_argument(
134 "--timings",
135 help="Output timing information",
136 action="store_true",
137 )
138 parser.add_argument(
139 "--features",
140 help="Comma separated list of features to activate",
141 )
142 parser.add_argument(
143 "--no-default-features",
144 help="Do not activate the `default` feature",
145 action="store_true",
146 )
147 parser.add_argument(
148 "--foundationdb",
149 help="Build with the foundationdb feature, enabling FoundationDB as a consensus and timestamp oracle backend",

Callers 1

run.pyFile · 0.70

Calls 15

cluster_replica_size_mapFunction · 0.90
UIErrorClass · 0.90
_macos_codesignFunction · 0.85
_connect_sqlFunction · 0.85
_run_sqlFunction · 0.85
update_sqlite_repoFunction · 0.85
_cargo_buildFunction · 0.85
_cargo_commandFunction · 0.85
listFunction · 0.50

Tested by

no test coverage detected