feat(orbital-cli): support local engine path in orbital init #787

Merged
SakulFlee merged 2 commits from feat/local-engine-path into main 2026-09-20 23:36:11 +00:00
Owner

Add --engine-path flag to 'orbital init' as an alternative to
--engine-repo. When a local path is provided, the generated
Cargo.toml uses 'orbital = { path = ".../Crates/orbital" }'
instead of a git dependency.

Changes:

  • config.rs: add engine_path field to OrbitalGeneral
  • main.rs: add --engine-path CLI flag
  • init/mod.rs: thread engine_path through to prompt functions
  • init/prompt.rs: add engine_path to ProjectConfig, add
    validate_engine_source() that accepts both local paths and
    git URLs, update interactive/non_interactive prompts
  • init/template.rs: generate_cargo_toml() branches on path vs
    git dep; all-in-one template placeholder replacement handles
    both cases

Usage:
orbital init mygame --engine-path /path/to/Orbital
orbital init mygame --engine-path ../Orbital --yes

Add --engine-path flag to 'orbital init' as an alternative to --engine-repo. When a local path is provided, the generated Cargo.toml uses 'orbital = { path = ".../Crates/orbital" }' instead of a git dependency. Changes: - config.rs: add engine_path field to OrbitalGeneral - main.rs: add --engine-path CLI flag - init/mod.rs: thread engine_path through to prompt functions - init/prompt.rs: add engine_path to ProjectConfig, add validate_engine_source() that accepts both local paths and git URLs, update interactive/non_interactive prompts - init/template.rs: generate_cargo_toml() branches on path vs git dep; all-in-one template placeholder replacement handles both cases Usage: orbital init mygame --engine-path /path/to/Orbital orbital init mygame --engine-path ../Orbital --yes
feat(orbital-cli): support local engine path in orbital init
Some checks failed
PR / lint (pull_request) Failing after 18s
354a23d4ee
Add --engine-path flag to 'orbital init' as an alternative to
--engine-repo. When a local path is provided, the generated
Cargo.toml uses 'orbital = { path = ".../Crates/orbital" }'
instead of a git dependency.

Changes:
- config.rs: add engine_path field to OrbitalGeneral
- main.rs: add --engine-path CLI flag
- init/mod.rs: thread engine_path through to prompt functions
- init/prompt.rs: add engine_path to ProjectConfig, add
  validate_engine_source() that accepts both local paths and
  git URLs, update interactive/non_interactive prompts
- init/template.rs: generate_cargo_toml() branches on path vs
  git dep; all-in-one template placeholder replacement handles
  both cases

Usage:
  orbital init mygame --engine-path /path/to/Orbital
  orbital init mygame --engine-path ../Orbital --yes
SakulFlee force-pushed feat/local-engine-path from 354a23d4ee
Some checks failed
PR / lint (pull_request) Failing after 18s
to be3e89e8fe
Some checks failed
PR / lint (pull_request) Failing after 22s
2026-09-20 22:27:10 +00:00
Compare
Format
All checks were successful
PR / lint (pull_request) Successful in 8m42s
aaaf8f1265
Sign in to join this conversation.
No description provided.