diff --git a/.buildnumber b/.buildnumber index 6610e117..c6876402 100644 --- a/.buildnumber +++ b/.buildnumber @@ -1 +1 @@ -277 \ No newline at end of file +278 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 669a2b77..9541464e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## CHANGELOG -### v0.37.23 +### v0.37.23 (2024-10-19) * Enhancement: support relative keyword for makefile extending to enable easy git/crate/workspace root extending #1175 * Maintenance: critical bug fix upgrade for duckscript diff --git a/Cargo.lock b/Cargo.lock index 6388acf7..bb9e007d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,7 +143,7 @@ dependencies = [ [[package]] name = "cargo-make" -version = "0.37.22" +version = "0.37.23" dependencies = [ "cargo_metadata", "cfg-if", @@ -209,9 +209,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.30" +version = "1.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16803a61b81d9eabb7eae2588776c4c1e584b738ede45fdbb4c972cec1e9945" +checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f" dependencies = [ "shlex", ] @@ -502,9 +502,9 @@ dependencies = [ [[package]] name = "evalexpr" -version = "11.3.0" +version = "11.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63b41cb9dd076076058a4523f009c900c582279536d0b2e45a29aa930e083cc5" +checksum = "b6aff27af350e7b53e82aac3e5ab6389abd8f280640ac034508dff0608c4c7e5" [[package]] name = "expect-test" @@ -873,9 +873,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.159" +version = "0.2.161" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] name = "libredox" @@ -997,9 +997,9 @@ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "openssl" -version = "0.10.66" +version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ "bitflags", "cfg-if", @@ -1029,9 +1029,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.103" +version = "0.9.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ "cc", "libc", @@ -1090,9 +1090,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.87" +version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" +checksum = "7c3a7fc5db1e57d5a779a352c8cdb57b29aa4c40cc69c3a68a7fedc815fbf2f9" dependencies = [ "unicode-ident", ] @@ -1244,9 +1244,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" [[package]] name = "rustls-webpki" @@ -1261,9 +1261,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" [[package]] name = "ryu" @@ -1352,9 +1352,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.131" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "67d42a0bd4ac281beff598909bb56a86acaf979b84483e1c79c10dcaf98f8cf3" dependencies = [ "itoa", "memchr", @@ -1439,9 +1439,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "suppaftp" -version = "6.0.1" +version = "6.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d5c3d37ce3092d7148494a30a0f5036f8722792a626b25662a87434d3683c33" +checksum = "fb7ae9f63c90e21e0afaf56d63516d3db678e57bc4ad7919c7db7a9c32db539c" dependencies = [ "chrono", "futures-lite", diff --git a/Cargo.toml b/Cargo.toml index 49705dae..a30e2468 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-make" -version = "0.37.22" +version = "0.37.23" authors = ["Sagie Gur-Ari "] description = "Rust task runner and build tool." license = "Apache-2.0" diff --git a/README.md b/README.md index 3e036790..d5b5804a 100644 --- a/README.md +++ b/README.md @@ -242,7 +242,7 @@ cargo make my-flow The output would look something like this: ```console -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: my-flow [cargo-make] INFO - Setting Up Env. @@ -665,7 +665,7 @@ Invoking cargo-make with additional arguments would result in the following: ```console > cargo make varargs arg1 arg2 arg3 -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: varargs [cargo-make] INFO - Setting Up Env. @@ -682,7 +682,7 @@ Invoking cargo-make without any additional arguments would result in the followi ```console > cargo make varargs -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: varargs [cargo-make] INFO - Setting Up Env. @@ -709,7 +709,7 @@ Would output: ```console > cargo make varargs arg1 arg2 arg3 -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: varargs [cargo-make] INFO - Setting Up Env. @@ -760,7 +760,7 @@ Invoking cargo-make with additional arguments would result in the following: ```console > cargo make cli-args arg1 arg2 arg3 -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: cli-args [cargo-make] INFO - Setting Up Env. @@ -777,7 +777,7 @@ Invoking cargo-make without any additional arguments would result in the followi ```console > cargo make cli-args -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: cli-args [cargo-make] INFO - Setting Up Env. @@ -1039,7 +1039,7 @@ Output: ```console > cargo make --cwd ./examples --makefile ./shebang.toml shebang-sh -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: ./shebang.toml [cargo-make] INFO - Task: shebang-sh [cargo-make] INFO - Profile: development @@ -1066,7 +1066,7 @@ Output: ```console > cargo make --cwd ./examples --makefile ./shebang.toml shebang-python -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: ./shebang.toml [cargo-make] INFO - Task: shebang-python [cargo-make] INFO - Profile: development @@ -1169,9 +1169,28 @@ All will be loaded in the order you define.
For example: ```toml -extend = [ { path = "must_have_makefile.toml" }, { path = "optional_makefile.toml", optional = true }, { path = "another_must_have_makefile.toml" } ] +extend = [ + { path = "alias.toml" }, + { path = "optional_makefile.toml", optional = true }, + { path = "cwd.toml" }, +] +``` + +You can also change the relative path from the current makefile location to the git root folder, crate root folder or workspace root folder by adding the relative keyword as follows: + +```toml +extend = { path = "./examples/python.toml", relative = "crate" } ``` +Where relative can have the following values: + +* git - For nearest (up) .git folder location. +* crate - For crate root (based on first Cargo.toml file) +* workspace - For workspace root (based on second top Cargo.toml file) + +Any other value defaults to the current makefile location.
+Important to mention, all paths are relative from the currently parsed makefile. + #### Automatically Extend Workspace Makefile When running cargo make for modules which are part of a workspace, you can automatically have the member crates makefile (even if doesn't exist) extend the workspace level makefile. @@ -1391,7 +1410,7 @@ args = ["3"] We run task **3** the output would be: ```console -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: task_extend.toml [cargo-make] INFO - Task: 3 [cargo-make] INFO - Profile: development @@ -2630,7 +2649,7 @@ cargo make --cwd ./examples --makefile profile.toml --profile production echo Output: ```console -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: profile.toml [cargo-make] INFO - Task: echo [cargo-make] INFO - Profile: production @@ -2750,7 +2769,7 @@ deprecated = true When invoking **legacy** task for example, the output is: ```console -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: deprecated.toml [cargo-make] INFO - Task: legacy [cargo-make] INFO - Profile: development @@ -2791,7 +2810,7 @@ watch = true Below is a sample output of invoking the task: ```console -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: ./examples/watch.toml [cargo-make] INFO - Task: watch-example [cargo-make] INFO - Setting Up Env. @@ -2799,7 +2818,7 @@ Below is a sample output of invoking the task: [cargo-make] INFO - Running Task: watch-example [cargo-make] INFO - Running Task: watch-example-watch [cargo-make] INFO - Execute Command: "cargo" "watch" "-q" "-x" "make --disable-check-for-updates --no-on-error --loglevel=info --makefile=/projects/rust/cargo-make/examples/watch.toml watch-example" -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: /projects/rust/cargo-make/examples/watch.toml [cargo-make] INFO - Task: watch-example [cargo-make] INFO - Setting Up Env. @@ -2883,7 +2902,7 @@ args = ["${MULTIPLE_VALUES}"] ```console > cargo make --cwd ./examples --makefile functions.toml split -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: split [cargo-make] INFO - Profile: development @@ -2895,7 +2914,7 @@ args = ["${MULTIPLE_VALUES}"] [cargo-make] INFO - Build Done in 0 seconds. > cargo make --cwd ./examples --makefile functions.toml no-split -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: no-split [cargo-make] INFO - Profile: development @@ -2933,7 +2952,7 @@ args = ["@@getat(MULTIPLE_VALUES,|,3)"] ```console > cargo make --cwd ./examples --makefile functions.toml getat -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: getat [cargo-make] INFO - Profile: development @@ -2960,7 +2979,7 @@ args = ["1", "@@remove-empty(DOES_NOT_EXIST)", "2"] ```console > cargo make --cwd ./examples --makefile functions.toml remove-empty -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: remove-empty [cargo-make] INFO - Profile: development @@ -2993,7 +3012,7 @@ args = ["@@trim(TRIM_VALUE)"] ```console > cargo make --cwd ./examples --makefile functions.toml remove-empty -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: trim [cargo-make] INFO - Profile: development @@ -3022,7 +3041,7 @@ args = ["@@trim(TRIM_VALUE,end)"] ```console > cargo make --cwd ./examples --makefile functions.toml trim-start -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: trim-start [cargo-make] INFO - Profile: development @@ -3034,7 +3053,7 @@ args = ["@@trim(TRIM_VALUE,end)"] [cargo-make] INFO - Build Done in 0 seconds. > cargo make --cwd ./examples --makefile functions.toml trim-end -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: trim-end [cargo-make] INFO - Profile: development @@ -3072,7 +3091,7 @@ Sample run for a mapping that was found: ```console cargo make --cwd ./examples --makefile functions.toml -e DECODE_ENV_VAR=development decode -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: decode [cargo-make] INFO - Profile: development @@ -3088,7 +3107,7 @@ Another sample run for a mapping that was not found: ```console cargo make --cwd ./examples --makefile functions.toml -e DECODE_ENV_VAR=unmapped decode -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: decode [cargo-make] INFO - Profile: development @@ -3113,7 +3132,7 @@ Sample run: ```console cargo make --cwd ./examples --makefile functions.toml -e DECODE_ENV_VAR=unmapped decode-with-default -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: decode-with-default [cargo-make] INFO - Profile: development @@ -3137,7 +3156,7 @@ Sample run: ```console cargo make --cwd ./examples --makefile functions.toml -e DECODE_ENV_VAR=test decode-with-eval -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: functions.toml [cargo-make] INFO - Task: decode-with-eval [cargo-make] INFO - Profile: development @@ -3511,7 +3530,7 @@ In order to specify the minimal version, use the **min_version** in the config s ```toml [config] -min_version = "0.37.22" +min_version = "0.37.23" ``` @@ -3641,7 +3660,7 @@ Example Usage: ```console cargo make --diff-steps --makefile ./examples/override_core.toml post-build -[cargo-make] INFO - cargo make 0.37.22 +[cargo-make] INFO - cargo make 0.37.23 [cargo-make] INFO - Build File: ./examples/override_core.toml [cargo-make] INFO - Task: post-build [cargo-make] INFO - Setting Up Env. diff --git a/docs/_config.yml b/docs/_config.yml index 574447dd..0b8762d4 100755 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -2,4 +2,4 @@ theme: jekyll-theme-cayman title: cargo-make description: Rust task runner and build tool. show_downloads: false -version: 0.37.22 +version: 0.37.23 diff --git a/docs/api/cargo_make/all.html b/docs/api/cargo_make/all.html index 88dbe86f..ad1c472d 100644 --- a/docs/api/cargo_make/all.html +++ b/docs/api/cargo_make/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Functions

\ No newline at end of file +List of all items in this crate

List of all items

Functions

\ No newline at end of file diff --git a/docs/api/cargo_make/fn.get_name.html b/docs/api/cargo_make/fn.get_name.html index cdd1caec..02d84395 100644 --- a/docs/api/cargo_make/fn.get_name.html +++ b/docs/api/cargo_make/fn.get_name.html @@ -1 +1 @@ -get_name in cargo_make - Rust

Function cargo_make::get_name

source ·
pub(crate) fn get_name() -> String
\ No newline at end of file +get_name in cargo_make - Rust

Function cargo_make::get_name

source ·
pub(crate) fn get_name() -> String
\ No newline at end of file diff --git a/docs/api/cargo_make/fn.main.html b/docs/api/cargo_make/fn.main.html index c278a7e4..8146d14b 100644 --- a/docs/api/cargo_make/fn.main.html +++ b/docs/api/cargo_make/fn.main.html @@ -1 +1 @@ -main in cargo_make - Rust

Function cargo_make::main

source ·
pub(crate) fn main() -> SuccessOrCargoMakeError<ExitCode>
\ No newline at end of file +main in cargo_make - Rust

Function cargo_make::main

source ·
pub(crate) fn main() -> SuccessOrCargoMakeError<ExitCode>
\ No newline at end of file diff --git a/docs/api/cargo_make/index.html b/docs/api/cargo_make/index.html index cc28920c..15b3da2c 100644 --- a/docs/api/cargo_make/index.html +++ b/docs/api/cargo_make/index.html @@ -1,4 +1,4 @@ -cargo_make - Rust

Crate cargo_make

source ·
Expand description

§cargo-make

+cargo_make - Rust

Crate cargo_make

source ·
Expand description

§cargo-make

Rust task runner and build tool.
The cargo-make task runner enables to define and configure sets of tasks and run them as a flow.
A task is a command or a script to execute.
diff --git a/docs/api/cli/all.html b/docs/api/cli/all.html index 06fa655a..66fbdc5c 100644 --- a/docs/api/cli/all.html +++ b/docs/api/cli/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Functions

Statics

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Functions

Statics

\ No newline at end of file diff --git a/docs/api/cli/cli/fn.run.html b/docs/api/cli/cli/fn.run.html index b92b0625..03e5e3c0 100644 --- a/docs/api/cli/cli/fn.run.html +++ b/docs/api/cli/cli/fn.run.html @@ -1,4 +1,4 @@ -run in cli::cli - Rust

Function cli::cli::run

source ·
pub fn run(
+run in cli::cli - Rust

Function cli::cli::run

source ·
pub fn run(
     cli_args: &CliArgs,
     global_config: &GlobalConfig,
     logger_options: Option<LoggerOptions>
diff --git a/docs/api/cli/cli/fn.run_cli.html b/docs/api/cli/cli/fn.run_cli.html
index 035e3563..182e9252 100644
--- a/docs/api/cli/cli/fn.run_cli.html
+++ b/docs/api/cli/cli/fn.run_cli.html
@@ -1,4 +1,4 @@
-run_cli in cli::cli - Rust

Function cli::cli::run_cli

source ·
pub fn run_cli(
+run_cli in cli::cli - Rust

Function cli::cli::run_cli

source ·
pub fn run_cli(
     command_name: String,
     sub_command: bool
 ) -> Result<CliArgs, CargoMakeError>
Expand description

Handles the command line arguments and executes the runner.

diff --git a/docs/api/cli/cli/index.html b/docs/api/cli/cli/index.html index c46851d9..6eeb5df8 100644 --- a/docs/api/cli/cli/index.html +++ b/docs/api/cli/cli/index.html @@ -1,3 +1,3 @@ -cli::cli - Rust

Module cli::cli

source ·
Expand description

§cli

+cli::cli - Rust

Module cli::cli

source ·
Expand description

§cli

The cargo-make cli

Functions§

  • Handles the command line arguments and executes the runner.
\ No newline at end of file diff --git a/docs/api/cli/cli_commands/index.html b/docs/api/cli/cli_commands/index.html index e63b0844..badeacf0 100644 --- a/docs/api/cli/cli_commands/index.html +++ b/docs/api/cli/cli_commands/index.html @@ -1,3 +1,3 @@ -cli::cli_commands - Rust

Module cli::cli_commands

source ·
Expand description

§cli_commands

+cli::cli_commands - Rust

Module cli::cli_commands

source ·
Expand description

§cli_commands

Wrappers for each CLI sub command.

Modules§

\ No newline at end of file diff --git a/docs/api/cli/cli_commands/list_steps/fn.run.html b/docs/api/cli/cli_commands/list_steps/fn.run.html index 186598ec..7e56f368 100644 --- a/docs/api/cli/cli_commands/list_steps/fn.run.html +++ b/docs/api/cli/cli_commands/list_steps/fn.run.html @@ -1,4 +1,4 @@ -run in cli::cli_commands::list_steps - Rust

Function cli::cli_commands::list_steps::run

source ·
pub fn run(
+run in cli::cli_commands::list_steps - Rust

Function cli::cli_commands::list_steps::run

source ·
pub fn run(
     config: &Config,
     output_format: &str,
     output_file: &Option<String>,
diff --git a/docs/api/cli/cli_commands/list_steps/index.html b/docs/api/cli/cli_commands/list_steps/index.html
index 8696d876..6467b0d6 100644
--- a/docs/api/cli/cli_commands/list_steps/index.html
+++ b/docs/api/cli/cli_commands/list_steps/index.html
@@ -1,4 +1,4 @@
-cli::cli_commands::list_steps - Rust

Module cli::cli_commands::list_steps

source ·
Expand description

§list_steps

+cli::cli_commands::list_steps - Rust

Module cli::cli_commands::list_steps

source ·
Expand description

§list_steps

Lists all known tasks in multiple formats. Or can list tasks based on a category

Functions§

\ No newline at end of file diff --git a/docs/api/cli/cli_commands/print_steps/fn.print.html b/docs/api/cli/cli_commands/print_steps/fn.print.html index d7373d57..c5f0cfdf 100644 --- a/docs/api/cli/cli_commands/print_steps/fn.print.html +++ b/docs/api/cli/cli_commands/print_steps/fn.print.html @@ -1,4 +1,4 @@ -print in cli::cli_commands::print_steps - Rust

Function cli::cli_commands::print_steps::print

source ·
pub fn print(
+print in cli::cli_commands::print_steps - Rust

Function cli::cli_commands::print_steps::print

source ·
pub fn print(
     output_buffer: &mut impl Write,
     config: &Config,
     task: &str,
diff --git a/docs/api/cli/cli_commands/print_steps/index.html b/docs/api/cli/cli_commands/print_steps/index.html
index 463ff050..a1e7c2fa 100644
--- a/docs/api/cli/cli_commands/print_steps/index.html
+++ b/docs/api/cli/cli_commands/print_steps/index.html
@@ -1,3 +1,3 @@
-cli::cli_commands::print_steps - Rust

Module cli::cli_commands::print_steps

source ·
Expand description
+cli::cli_commands::print_steps - Rust

Module cli::cli_commands::print_steps

source ·
Expand description

Prints the execution plan in multiple formats.

Functions§

  • Only prints the execution plan
\ No newline at end of file diff --git a/docs/api/cli/cli_parser/fn.create_cli.html b/docs/api/cli/cli_parser/fn.create_cli.html index 65e885ad..1a30a09e 100644 --- a/docs/api/cli/cli_parser/fn.create_cli.html +++ b/docs/api/cli/cli_parser/fn.create_cli.html @@ -1,4 +1,4 @@ -create_cli in cli::cli_parser - Rust

Function cli::cli_parser::create_cli

source ·
pub fn create_cli(
+create_cli in cli::cli_parser - Rust

Function cli::cli_parser::create_cli

source ·
pub fn create_cli(
     global_config: &GlobalConfig,
     spec: CliSpec,
     default_meta: bool
diff --git a/docs/api/cli/cli_parser/fn.parse.html b/docs/api/cli/cli_parser/fn.parse.html
index 25917b0b..fbaf2bf7 100644
--- a/docs/api/cli/cli_parser/fn.parse.html
+++ b/docs/api/cli/cli_parser/fn.parse.html
@@ -1,4 +1,4 @@
-parse in cli::cli_parser - Rust

Function cli::cli_parser::parse

source ·
pub fn parse(
+parse in cli::cli_parser - Rust

Function cli::cli_parser::parse

source ·
pub fn parse(
     global_config: &GlobalConfig,
     command_name: &str,
     sub_command: bool
diff --git a/docs/api/cli/cli_parser/fn.parse_args.html b/docs/api/cli/cli_parser/fn.parse_args.html
index 88d0fb5d..5b472e37 100644
--- a/docs/api/cli/cli_parser/fn.parse_args.html
+++ b/docs/api/cli/cli_parser/fn.parse_args.html
@@ -1,4 +1,4 @@
-parse_args in cli::cli_parser - Rust

Function cli::cli_parser::parse_args

source ·
pub fn parse_args(
+parse_args in cli::cli_parser - Rust

Function cli::cli_parser::parse_args

source ·
pub fn parse_args(
     global_config: &GlobalConfig,
     command_name: &str,
     sub_command: bool,
diff --git a/docs/api/cli/cli_parser/index.html b/docs/api/cli/cli_parser/index.html
index f63b54e1..ac1b9db3 100644
--- a/docs/api/cli/cli_parser/index.html
+++ b/docs/api/cli/cli_parser/index.html
@@ -1,3 +1,3 @@
-cli::cli_parser - Rust

Module cli::cli_parser

source ·
Expand description

§cli_parser

+cli::cli_parser - Rust

Module cli::cli_parser

source ·
Expand description

§cli_parser

Defines the cli args and parsers them.

Functions§

\ No newline at end of file diff --git a/docs/api/cli/config/fn.get_config_directory.html b/docs/api/cli/config/fn.get_config_directory.html index 68632a34..ab2fe551 100644 --- a/docs/api/cli/config/fn.get_config_directory.html +++ b/docs/api/cli/config/fn.get_config_directory.html @@ -1 +1 @@ -get_config_directory in cli::config - Rust

Function cli::config::get_config_directory

source ·
pub fn get_config_directory() -> Option<PathBuf>
\ No newline at end of file +get_config_directory in cli::config - Rust

Function cli::config::get_config_directory

source ·
pub fn get_config_directory() -> Option<PathBuf>
\ No newline at end of file diff --git a/docs/api/cli/config/fn.load.html b/docs/api/cli/config/fn.load.html index aec26194..1dbcd1d0 100644 --- a/docs/api/cli/config/fn.load.html +++ b/docs/api/cli/config/fn.load.html @@ -1,2 +1,2 @@ -load in cli::config - Rust

Function cli::config::load

source ·
pub fn load() -> Result<GlobalConfig, CargoMakeError>
Expand description

Returns the configuration

+load in cli::config - Rust

Function cli::config::load

source ·
pub fn load() -> Result<GlobalConfig, CargoMakeError>
Expand description

Returns the configuration

\ No newline at end of file diff --git a/docs/api/cli/config/fn.load_from_path.html b/docs/api/cli/config/fn.load_from_path.html index 7721f474..42ef3464 100644 --- a/docs/api/cli/config/fn.load_from_path.html +++ b/docs/api/cli/config/fn.load_from_path.html @@ -1,3 +1,3 @@ -load_from_path in cli::config - Rust

Function cli::config::load_from_path

source ·
pub fn load_from_path(
+load_from_path in cli::config - Rust

Function cli::config::load_from_path

source ·
pub fn load_from_path(
     directory: PathBuf
 ) -> Result<GlobalConfig, CargoMakeError>
\ No newline at end of file diff --git a/docs/api/cli/config/index.html b/docs/api/cli/config/index.html index b0cb36f1..ea52f474 100644 --- a/docs/api/cli/config/index.html +++ b/docs/api/cli/config/index.html @@ -1,3 +1,3 @@ -cli::config - Rust

Module cli::config

source ·
Expand description

§config

+cli::config - Rust

Module cli::config

source ·
Expand description

§config

Enable to load/store user level configuration for cargo-make.

Statics§

Functions§

\ No newline at end of file diff --git a/docs/api/cli/config/static.CONFIG_FILE.html b/docs/api/cli/config/static.CONFIG_FILE.html index b2b35520..66800730 100644 --- a/docs/api/cli/config/static.CONFIG_FILE.html +++ b/docs/api/cli/config/static.CONFIG_FILE.html @@ -1 +1 @@ -CONFIG_FILE in cli::config - Rust

Static cli::config::CONFIG_FILE

source ·
pub static CONFIG_FILE: &'static str
\ No newline at end of file +CONFIG_FILE in cli::config - Rust

Static cli::config::CONFIG_FILE

source ·
pub static CONFIG_FILE: &'static str
\ No newline at end of file diff --git a/docs/api/cli/error/enum.CargoMakeError.html b/docs/api/cli/error/enum.CargoMakeError.html index 2ca40cf9..1ec7505e 100644 --- a/docs/api/cli/error/enum.CargoMakeError.html +++ b/docs/api/cli/error/enum.CargoMakeError.html @@ -1,4 +1,4 @@ -CargoMakeError in cli::error - Rust

Enum cli::error::CargoMakeError

source ·
#[repr(u16)]
pub enum CargoMakeError { +CargoMakeError in cli::error - Rust

Enum cli::error::CargoMakeError

source ·
#[repr(u16)]
pub enum CargoMakeError {
Show 18 variants EnvVarCycle(String), AliasCycle(String, String), CircularReference(String), @@ -27,7 +27,7 @@ ParserError { error: ParserError, }, -
}

Variants§

§

EnvVarCycle(String)

§

AliasCycle(String, String)

§

CircularReference(String)

§

VersionTooOld(String)

§

ExitCodeValidation = 104

§

ExitCodeError(i32)

§

DescriptorParseFailed(String)

§

ParseFileFailed(String, String)

§

Arity(&'static str)

§

MethodCallRestriction(&'static str)

§

TaskIs(String, &'static str)

§

NotFound(String)

§

StdIoError

Fields

§error: Error
§

StdFmtError

Fields

§error: Error
§

ExitCode(ExitCode)

§

TomlDeError

Fields

§error: Error
§

FsIOError

Fields

§error: FsIOError
§

ParserError

Fields

§error: ParserError

Trait Implementations§

source§

impl AsRef<str> for CargoMakeError

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for CargoMakeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CargoMakeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'_derivative_strum> From<&'_derivative_strum CargoMakeError> for &'static str

source§

fn from(x: &'_derivative_strum CargoMakeError) -> &'static str

Converts to this type from the input type.
source§

impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<CargoMakeError> for &'static str

source§

fn from(x: CargoMakeError) -> &'static str

Converts to this type from the input type.
source§

impl From<CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExitCode> for CargoMakeError

source§

fn from(error: ExitCode) -> Self

Converts to this type from the input type.
source§

impl From<FsIOError> for CargoMakeError

source§

fn from(error: FsIOError) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for CargoMakeError

source§

fn from(error: ParserError) -> Self

Converts to this type from the input type.
source§

impl Termination for CargoMakeError

source§

fn report(self) -> ExitCode

Is called to get the representation of the value as status code. +
}

Variants§

§

EnvVarCycle(String)

§

AliasCycle(String, String)

§

CircularReference(String)

§

VersionTooOld(String)

§

ExitCodeValidation = 104

§

ExitCodeError(i32)

§

DescriptorParseFailed(String)

§

ParseFileFailed(String, String)

§

Arity(&'static str)

§

MethodCallRestriction(&'static str)

§

TaskIs(String, &'static str)

§

NotFound(String)

§

StdIoError

Fields

§error: Error
§

StdFmtError

Fields

§error: Error
§

ExitCode(ExitCode)

§

TomlDeError

Fields

§error: Error
§

FsIOError

Fields

§error: FsIOError
§

ParserError

Fields

§error: ParserError

Trait Implementations§

source§

impl AsRef<str> for CargoMakeError

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for CargoMakeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CargoMakeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'_derivative_strum> From<&'_derivative_strum CargoMakeError> for &'static str

source§

fn from(x: &'_derivative_strum CargoMakeError) -> &'static str

Converts to this type from the input type.
source§

impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<CargoMakeError> for &'static str

source§

fn from(x: CargoMakeError) -> &'static str

Converts to this type from the input type.
source§

impl From<CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for CargoMakeError

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<ExitCode> for CargoMakeError

source§

fn from(error: ExitCode) -> Self

Converts to this type from the input type.
source§

impl From<FsIOError> for CargoMakeError

source§

fn from(error: FsIOError) -> Self

Converts to this type from the input type.
source§

impl From<ParserError> for CargoMakeError

source§

fn from(error: ParserError) -> Self

Converts to this type from the input type.
source§

impl Termination for CargoMakeError

source§

fn report(self) -> ExitCode

Is called to get the representation of the value as status code. This status code is returned to the operating system.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/docs/api/cli/error/enum.CargoMakeErrorDiscriminants.html b/docs/api/cli/error/enum.CargoMakeErrorDiscriminants.html index 440be4f3..7ab4653a 100644 --- a/docs/api/cli/error/enum.CargoMakeErrorDiscriminants.html +++ b/docs/api/cli/error/enum.CargoMakeErrorDiscriminants.html @@ -1,4 +1,4 @@ -CargoMakeErrorDiscriminants in cli::error - Rust

Enum cli::error::CargoMakeErrorDiscriminants

source ·
#[repr(u16)]
pub enum CargoMakeErrorDiscriminants { +CargoMakeErrorDiscriminants in cli::error - Rust

Enum cli::error::CargoMakeErrorDiscriminants

source ·
#[repr(u16)]
pub enum CargoMakeErrorDiscriminants {
Show 18 variants EnvVarCycle = 100, AliasCycle = 101, CircularReference = 102, @@ -18,7 +18,7 @@ FsIOError = 730, ParserError = 731,
}
Expand description

Auto-generated discriminant enum variants

-

Variants§

§

EnvVarCycle = 100

§

AliasCycle = 101

§

CircularReference = 102

§

VersionTooOld = 103

§

ExitCodeValidation = 104

§

ExitCodeError = 105

§

DescriptorParseFailed = 106

§

ParseFileFailed = 107

§

Arity = 108

§

MethodCallRestriction = 109

§

TaskIs = 110

§

NotFound = 404

§

StdIoError = 700

§

StdFmtError = 709

§

ExitCode = 710

§

TomlDeError = 720

§

FsIOError = 730

§

ParserError = 731

Trait Implementations§

source§

impl Clone for CargoMakeErrorDiscriminants

source§

fn clone(&self) -> CargoMakeErrorDiscriminants

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CargoMakeErrorDiscriminants

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl PartialEq for CargoMakeErrorDiscriminants

source§

fn eq(&self, other: &CargoMakeErrorDiscriminants) -> bool

This method tests for self and other values to be equal, and is used +

Variants§

§

EnvVarCycle = 100

§

AliasCycle = 101

§

CircularReference = 102

§

VersionTooOld = 103

§

ExitCodeValidation = 104

§

ExitCodeError = 105

§

DescriptorParseFailed = 106

§

ParseFileFailed = 107

§

Arity = 108

§

MethodCallRestriction = 109

§

TaskIs = 110

§

NotFound = 404

§

StdIoError = 700

§

StdFmtError = 709

§

ExitCode = 710

§

TomlDeError = 720

§

FsIOError = 730

§

ParserError = 731

Trait Implementations§

source§

impl Clone for CargoMakeErrorDiscriminants

source§

fn clone(&self) -> CargoMakeErrorDiscriminants

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CargoMakeErrorDiscriminants

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'_enum> From<&'_enum CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: &'_enum CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl From<CargoMakeError> for CargoMakeErrorDiscriminants

source§

fn from(val: CargoMakeError) -> CargoMakeErrorDiscriminants

Converts to this type from the input type.
source§

impl PartialEq for CargoMakeErrorDiscriminants

source§

fn eq(&self, other: &CargoMakeErrorDiscriminants) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CargoMakeErrorDiscriminants

source§

impl Eq for CargoMakeErrorDiscriminants

source§

impl StructuralPartialEq for CargoMakeErrorDiscriminants

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/docs/api/cli/error/enum.SuccessOrCargoMakeError.html b/docs/api/cli/error/enum.SuccessOrCargoMakeError.html index 34e1f64b..482efe4e 100644 --- a/docs/api/cli/error/enum.SuccessOrCargoMakeError.html +++ b/docs/api/cli/error/enum.SuccessOrCargoMakeError.html @@ -1,4 +1,4 @@ -SuccessOrCargoMakeError in cli::error - Rust

Enum cli::error::SuccessOrCargoMakeError

source ·
pub enum SuccessOrCargoMakeError<T> {
+SuccessOrCargoMakeError in cli::error - Rust

Enum cli::error::SuccessOrCargoMakeError

source ·
pub enum SuccessOrCargoMakeError<T> {
     Ok(T),
     Err(CargoMakeError),
 }

Variants§

Trait Implementations§

source§

impl<T> From<Result<T, CargoMakeError>> for SuccessOrCargoMakeError<T>

source§

fn from(value: Result<T, CargoMakeError>) -> Self

Converts to this type from the input type.
source§

impl<T: Any> Termination for SuccessOrCargoMakeError<T>

source§

fn report(self) -> ExitCode

Is called to get the representation of the value as status code. diff --git a/docs/api/cli/error/index.html b/docs/api/cli/error/index.html index b2c30c64..a2f0a175 100644 --- a/docs/api/cli/error/index.html +++ b/docs/api/cli/error/index.html @@ -1 +1 @@ -cli::error - Rust

Module cli::error

source ·

Enums§

\ No newline at end of file +cli::error - Rust

Module cli::error

source ·

Enums§

\ No newline at end of file diff --git a/docs/api/cli/fn.run_cli.html b/docs/api/cli/fn.run_cli.html index 8370c062..cf0a9ed2 100644 --- a/docs/api/cli/fn.run_cli.html +++ b/docs/api/cli/fn.run_cli.html @@ -1,4 +1,4 @@ -run_cli in cli - Rust

Function cli::run_cli

source ·
pub fn run_cli(
+run_cli in cli - Rust

Function cli::run_cli

source ·
pub fn run_cli(
     command_name: String,
     sub_command: bool
 ) -> Result<CliArgs, CargoMakeError>
Expand description

Handles the command line arguments and executes the runner.

diff --git a/docs/api/cli/index.html b/docs/api/cli/index.html index 4be3344d..c3dbe6ca 100644 --- a/docs/api/cli/index.html +++ b/docs/api/cli/index.html @@ -1,4 +1,4 @@ -cli - Rust

Crate cli

source ·
Expand description

§cargo-make

+cli - Rust

Crate cli

source ·
Expand description

§cargo-make

Rust task runner and build tool.
The cargo-make task runner enables to define and configure sets of tasks and run them as a flow.
A task is a command or a script to execute.
diff --git a/docs/api/cli/logger/index.html b/docs/api/cli/logger/index.html index 2e3ff449..06df73c3 100644 --- a/docs/api/cli/logger/index.html +++ b/docs/api/cli/logger/index.html @@ -1,3 +1,3 @@ -cli::logger - Rust

Module cli::logger

source ·
Expand description

§log

+cli::logger - Rust

Module cli::logger

source ·
Expand description

§log

Initializes the global logger.

Structs§

\ No newline at end of file diff --git a/docs/api/cli/logger/struct.LoggerOptions.html b/docs/api/cli/logger/struct.LoggerOptions.html index 688be7c5..8f3766b1 100644 --- a/docs/api/cli/logger/struct.LoggerOptions.html +++ b/docs/api/cli/logger/struct.LoggerOptions.html @@ -1,4 +1,4 @@ -LoggerOptions in cli::logger - Rust

Struct cli::logger::LoggerOptions

source ·
pub struct LoggerOptions {
+LoggerOptions in cli::logger - Rust

Struct cli::logger::LoggerOptions

source ·
pub struct LoggerOptions {
     pub name: String,
     pub level: String,
     pub color: bool,
diff --git a/docs/api/cli/runner/fn.run.html b/docs/api/cli/runner/fn.run.html
index c6e7d5ca..565e5f5c 100644
--- a/docs/api/cli/runner/fn.run.html
+++ b/docs/api/cli/runner/fn.run.html
@@ -1,4 +1,4 @@
-run in cli::runner - Rust

Function cli::runner::run

source ·
pub fn run(
+run in cli::runner - Rust

Function cli::runner::run

source ·
pub fn run(
     config: Config,
     task: &str,
     env_info: EnvInfo,
diff --git a/docs/api/cli/runner/index.html b/docs/api/cli/runner/index.html
index 821cf6c2..b90e1dfc 100644
--- a/docs/api/cli/runner/index.html
+++ b/docs/api/cli/runner/index.html
@@ -1,4 +1,4 @@
-cli::runner - Rust

Module cli::runner

source ·
Expand description

§runner

+cli::runner - Rust

Module cli::runner

source ·
Expand description

§runner

Runs the requested tasks.
The flow is as follows: