) {
fn task_publish_to_crates_io() {
println!(r#"{YELLOW}The crates.io access token must already be saved locally with `cargo login TOKEN`{RESET}"#);
- let cargo_toml = CargoToml::read();
+ let cargo_toml = cl::CargoToml::read();
// git tag
let shell_command = format!(
"git tag -f -a v{version} -m version_{version}",
version = cargo_toml.package_version()
);
- run_shell_command(&shell_command);
+ cl::run_shell_command(&shell_command);
// cargo publish
- run_shell_command("cargo publish");
+ cl::run_shell_command("cargo publish");
println!(
r#"
{YELLOW}After `cargo auto publish_to_crates_io`, check in browser{RESET}
@@ -286,7 +290,7 @@ fn task_publish_to_crates_io() {
/// create a new release on github
fn task_github_new_release() {
- let cargo_toml = CargoToml::read();
+ let cargo_toml = cl::CargoToml::read();
println!(" {YELLOW}The env variable GITHUB_TOKEN must be set: export GITHUB_TOKEN=paste_token_here{RESET}");
// the git tag was already created when we published to crates.io
@@ -313,11 +317,11 @@ r#"## Changed
// compress files tar.gz
let tar_name = format!("{repo_name}-{tag_name_version}-x86_64-unknown-linux-gnu.tar.gz");
- run_shell_command(&format!("tar -zcvf {tar_name} target/release/{repo_name}"));
+ cl::run_shell_command(&format!("tar -zcvf {tar_name} target/release/{repo_name}"));
// upload asset
auto_github_upload_asset_to_release(&owner, &repo_name, &release_id, &tar_name).await;
- run_shell_command(&format!("rm {tar_name}"));
+ cl::run_shell_command(&format!("rm {tar_name}"));
println!(" {YELLOW}Asset uploaded. Open and edit the description on GitHub-Releases in the browser.{RESET}");
println!("{GREEN}https://github.com/{owner}/{repo_name}/releases{RESET}");
diff --git a/src/main.rs b/src/main.rs
index d13d01c9..c45d7a73 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,7 +2,7 @@
//! # cargo-auto
//!
//! **cargo-auto - automation tasks written in Rust language for the build process of Rust projects**
-//! ***version: 2024.207.2303 date: 2024-02-07 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
+//! ***version: 2024.209.128 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
//!
//! 
//! 
@@ -42,7 +42,7 @@
//! ```
//!
//! We can also add `automation tasks` to an existing Rust project.
-//! Inside your Rust project directory (the one with Cargo.toml or Cargo-auto.toml) run:
+//! Inside your Rust project directory (the one with Cargo.toml) run:
//!
//! ```bash
//! cargo auto new_auto
diff --git a/src/template_new_cli_mod.rs b/src/template_new_cli_mod.rs
index 2600cb9a..530b78c2 100644
--- a/src/template_new_cli_mod.rs
+++ b/src/template_new_cli_mod.rs
@@ -422,7 +422,7 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! # cargo-auto
//!
//! **cargo-auto - automation tasks written in Rust language for the build process of Rust projects**
-//! ***version: 2024.207.2303 date: 2024-02-07 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
+//! ***version: 2024.209.128 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
//!
//! 
//! 
@@ -462,7 +462,7 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! ```
//!
//! We can also add `automation tasks` to an existing Rust project.
-//! Inside your Rust project directory (the one with Cargo.toml or Cargo-auto.toml) run:
+//! Inside your Rust project directory (the one with Cargo.toml) run:
//!
//! ```bash
//! cargo auto new_auto
diff --git a/src/template_new_pwa_wasm_mod.rs b/src/template_new_pwa_wasm_mod.rs
index 73377016..3256ec17 100644
--- a/src/template_new_pwa_wasm_mod.rs
+++ b/src/template_new_pwa_wasm_mod.rs
@@ -362,7 +362,7 @@ So I can drink a free beer for your health :-)
// but the new service worker will not be activated until all
// tabs with this webapp are closed.
-const CACHE_NAME = '2024.207.2301';
+const CACHE_NAME = '2024.209.128';
self.addEventListener('install', event => {
console.log('event install ', CACHE_NAME);
@@ -7969,7 +7969,7 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! # cargo-auto
//!
//! **cargo-auto - automation tasks written in Rust language for the build process of Rust projects**
-//! ***version: 2024.207.2303 date: 2024-02-07 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
+//! ***version: 2024.209.128 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
//!
//! 
//! 
@@ -8009,7 +8009,7 @@ fn upper_greet_name(greet_name: &str) -> anyhow::Result<()> {
//! ```
//!
//! We can also add `automation tasks` to an existing Rust project.
-//! Inside your Rust project directory (the one with Cargo.toml or Cargo-auto.toml) run:
+//! Inside your Rust project directory (the one with Cargo.toml) run:
//!
//! ```bash
//! cargo auto new_auto
diff --git a/src/template_new_wasm_mod.rs b/src/template_new_wasm_mod.rs
index dfec4a64..f1fc1e00 100644
--- a/src/template_new_wasm_mod.rs
+++ b/src/template_new_wasm_mod.rs
@@ -670,7 +670,7 @@ r#"The result is
//! # cargo-auto
//!
//! **cargo-auto - automation tasks written in Rust language for the build process of Rust projects**
-//! ***version: 2024.207.2303 date: 2024-02-07 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
+//! ***version: 2024.209.128 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
//!
//! 
//! 
@@ -710,7 +710,7 @@ r#"The result is
//! ```
//!
//! We can also add `automation tasks` to an existing Rust project.
-//! Inside your Rust project directory (the one with Cargo.toml or Cargo-auto.toml) run:
+//! Inside your Rust project directory (the one with Cargo.toml) run:
//!
//! ```bash
//! cargo auto new_auto
diff --git a/template_new_pwa_wasm/web_server_folder/pwa_short_name/index.html b/template_new_pwa_wasm/web_server_folder/pwa_short_name/index.html
index 2f0d0bc2..7828ef32 100644
--- a/template_new_pwa_wasm/web_server_folder/pwa_short_name/index.html
+++ b/template_new_pwa_wasm/web_server_folder/pwa_short_name/index.html
@@ -1,68 +1,70 @@
-
-
- pwa_name
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+pwa_name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
-
-
- Waiting to
- download
- the web app...
- This is
- very quick on fast
- networks...
-
-
-
-
-
+
diff --git a/template_new_pwa_wasm/web_server_folder/pwa_short_name/service_worker.js b/template_new_pwa_wasm/web_server_folder/pwa_short_name/service_worker.js
index d85260ea..216f9f20 100644
--- a/template_new_pwa_wasm/web_server_folder/pwa_short_name/service_worker.js
+++ b/template_new_pwa_wasm/web_server_folder/pwa_short_name/service_worker.js
@@ -7,7 +7,7 @@
// but the new service worker will not be activated until all
// tabs with this webapp are closed.
-const CACHE_NAME = '2024.207.2303';
+const CACHE_NAME = '2024.209.128';
self.addEventListener('install', event => {
console.log('event install ', CACHE_NAME);
diff --git a/template_new_wasm/web_server_folder/cargo_auto_template_new_wasm/index.html b/template_new_wasm/web_server_folder/cargo_auto_template_new_wasm/index.html
index a89758eb..6db4b139 100644
--- a/template_new_wasm/web_server_folder/cargo_auto_template_new_wasm/index.html
+++ b/template_new_wasm/web_server_folder/cargo_auto_template_new_wasm/index.html
@@ -1,45 +1,41 @@
-
-
- cargo_auto_template_new_wasm
-
-
-
-
-
+
+
+cargo_auto_template_new_wasm
+
+
+
+
-
-
-
-
+
-
-
- Waiting to
- download
- the web app...
- This is
- very quick on fast
- networks...
-
-
-
-
-
+
-
-
\ No newline at end of file
+