make build default to native, --docker for Docker image

This commit is contained in:
Adil Hafeez 2026-03-03 14:55:20 -08:00
parent 66dbde1c32
commit 217bab1a43
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -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")