feat(orbital-cli): support local engine path in orbital init #787
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!787
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/local-engine-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
validate_engine_source() that accepts both local paths and
git URLs, update interactive/non_interactive prompts
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 --yes354a23d4eebe3e89e8fe