This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5027d9e
commit 5a8c737
Showing
7 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,18 @@ fn main() { | |
dotenv::dotenv().ok(); | ||
|
||
let matches = clap_app!(Ceres => | ||
(version: "0.3.5") | ||
(version: "0.3.6") | ||
(author: "mori <[email protected]>") | ||
(about: "Ceres is a build tool, script compiler and map preprocessor for WC3 Lua maps.") | ||
(@subcommand build => | ||
(about: "Uses the build.lua file in the current directory to build a map.") | ||
(setting: clap::AppSettings::TrailingVarArg) | ||
(@arg manifest: --manifest +takes_value) | ||
(@arg dir: --dir -d +takes_value "Sets the project directory.") | ||
(@arg BUILD_ARGS: ... "Arguments to pass to the build script.") | ||
) | ||
(@subcommand run => | ||
(about: "Uses the build.lua file in the current directory to build and run a map.") | ||
(setting: clap::AppSettings::TrailingVarArg) | ||
(@arg manifest: --manifest +takes_value) | ||
(@arg dir: --dir -d +takes_value "Sets the project directory.") | ||
(@arg BUILD_ARGS: ... "Arguments to pass to the build script.") | ||
) | ||
|
@@ -58,10 +56,6 @@ fn run_build(arg: &clap::ArgMatches, mode: ceres_core::CeresRunMode) -> Result<( | |
.map(std::iter::Iterator::collect) | ||
.unwrap_or_else(Vec::new); | ||
|
||
let manifest_port = arg | ||
.value_of("manifest") | ||
.map(|s| u16::from_str_radix(s, 10).unwrap()); | ||
|
||
ceres_core::run_build_script(mode, project_dir, script_args)?; | ||
|
||
Ok(()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters