mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
make build default to native, --docker for Docker image
This commit is contained in:
parent
66dbde1c32
commit
217bab1a43
1 changed files with 4 additions and 4 deletions
|
|
@ -132,12 +132,12 @@ def main(ctx, version):
|
|||
|
||||
@click.command()
|
||||
@click.option(
|
||||
"--native",
|
||||
"--docker",
|
||||
default=False,
|
||||
help="Build WASM plugins and brightstaff natively (requires Rust toolchain).",
|
||||
help="Build the Docker image instead of native binaries.",
|
||||
is_flag=True,
|
||||
)
|
||||
def build(native):
|
||||
def build(docker):
|
||||
"""Build Plano from source. Works from any directory within the repo."""
|
||||
|
||||
# Find the repo root
|
||||
|
|
@ -148,7 +148,7 @@ def build(native):
|
|||
)
|
||||
sys.exit(1)
|
||||
|
||||
if native:
|
||||
if not docker:
|
||||
import shutil
|
||||
|
||||
crates_dir = os.path.join(repo_root, "crates")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue