Skip to content

Commit

Permalink
Merge pull request #1 from bestia-dev/update_template_automation
Browse files Browse the repository at this point in the history
update_template_automation
  • Loading branch information
bestia-dev authored Feb 9, 2024
2 parents 420a412 + 6d163ce commit bf75261
Show file tree
Hide file tree
Showing 59 changed files with 22,525 additions and 862 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-auto"
version = "2024.209.301"
version = "2024.209.504"
authors = ["bestia.dev"]
homepage = "https://bestia.dev"
edition = "2021"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[//]: # (auto_cargo_toml_to_md start)

**cargo-auto - automation tasks written in Rust language for the build process of Rust projects**
***version: 2024.209.301 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***
***version: 2024.209.504 date: 2024-02-09 author: [bestia.dev](https://bestia.dev) repository: [GitHub](https://github.com/bestia-dev/cargo-auto)***

[//]: # (auto_cargo_toml_to_md end)

Expand All @@ -21,11 +21,11 @@
![Hits](https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg)

[//]: # (auto_lines_of_code start)
[![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-9180-green.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-9189-green.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in Doc comments](https://img.shields.io/badge/Lines_in_Doc_comments-471-blue.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-349-purple.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in Comments](https://img.shields.io/badge/Lines_in_comments-428-purple.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in examples](https://img.shields.io/badge/Lines_in_examples-0-yellow.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in tests](https://img.shields.io/badge/Lines_in_tests-1526-orange.svg)](https://github.com/bestia-dev/cargo-auto/)
[![Lines in tests](https://img.shields.io/badge/Lines_in_tests-6334-orange.svg)](https://github.com/bestia-dev/cargo-auto/)

[//]: # (auto_lines_of_code end)

Expand Down
16 changes: 8 additions & 8 deletions automation_tasks_rs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ fn print_help() {
{GREEN}cargo auto release{RESET}{YELLOW} - builds the crate in release mode, fmt, increment version{RESET}
{GREEN}cargo auto doc{RESET}{YELLOW} - builds the docs, copy to docs directory{RESET}
{GREEN}cargo auto test{RESET}{YELLOW} - runs all the tests{RESET}
{GREEN}cargo auto commit_and_push "message"{RESET}{YELLOW} - commits with message and push with mandatory message
(If you use SSH, it is easy to start the ssh-agent in the background and ssh-add your credentials for git.){RESET}
{GREEN}cargo auto publish_to_crates_io{RESET}{YELLOW} - publish to crates.io, git tag
(You need credentials for publishing. On crates.io get the 'access token'. Then save it locally once and forever with the command
` cargo login TOKEN` use a space before the command to avoid saving the secret token in bash history.){RESET}
{GREEN}cargo auto github_new_release{RESET}{YELLOW} - creates new release on github
This task needs PAT (personal access token from github) in the env variable:{RESET}
{GREEN}cargo auto commit_and_push "message"{RESET}{YELLOW} - commits with message and push with mandatory message{RESET}
{YELLOW}(If you use SSH, it is easy to start the ssh-agent in the background and ssh-add your credentials for git.){RESET}
{GREEN}cargo auto publish_to_crates_io{RESET}{YELLOW} - publish to crates.io, git tag{RESET}
{YELLOW}(You need credentials for publishing. On crates.io get the 'access token'. Then save it locally once and forever with the command{RESET}
{YELLOW}`cargo login TOKEN` use a space before the command to avoid saving the secret token in bash history.){RESET}
{GREEN}cargo auto github_new_release{RESET}{YELLOW} - creates new release on github{RESET}
{YELLOW}This task needs PAT (personal access token from github) in the env variable:{RESET}
{GREEN} export GITHUB_TOKEN=paste_token_here{RESET}
{YELLOW}© 2023 bestia.dev MIT License github.com/bestia-dev/cargo-auto{RESET}
{YELLOW}© 2024 bestia.dev MIT License github.com/bestia-dev/cargo-auto{RESET}
"#
);
print_examples_cmd();
Expand Down
10 changes: 5 additions & 5 deletions docs/cargo_auto/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<h2 class="location"><a href="#">Crate cargo_auto</a></h2>
<div class="sidebar-elems">
<ul class="block">
<li class="version">Version 2024.209.301</li>
<li class="version">Version 2024.209.504</li>
<li>
<a id="all-types" href="all.html">All Items</a>
</li>
Expand Down Expand Up @@ -87,7 +87,7 @@ <h1>Crate <a class="mod" href="#">cargo_auto</a><button id="copy-path" title="Co
<div class="docblock">
<h2 id="cargo-auto"><a href="#cargo-auto">cargo-auto</a></h2>
<p><strong>cargo-auto - automation tasks written in Rust language for the build process of Rust projects</strong><br>
<em><strong>version: 2024.209.301 date: 2024-02-09 author: <a href="https://bestia.dev">bestia.dev</a> repository: <a href=
<em><strong>version: 2024.209.504 date: 2024-02-09 author: <a href="https://bestia.dev">bestia.dev</a> repository: <a href=
"https://github.com/bestia-dev/cargo-auto">GitHub</a></strong></em></p>
<p><img src="https://img.shields.io/badge/maintained-green" alt="status"> <img src="https://img.shields.io/badge/ready_for_use-green" alt=
"status"></p>
Expand All @@ -99,12 +99,12 @@ <h2 id="cargo-auto"><a href="#cargo-auto">cargo-auto</a></h2>
"License"></a> <a href="https://github.com/bestia-dev/cargo-auto/"><img src=
"https://github.com/bestia-dev/cargo-auto/workflows/rust_fmt_auto_build_test/badge.svg" alt="Rust"></a> <img src=
"https://bestia.dev/webpage_hit_counter/get_svg_image/959103982.svg" alt="Hits"></p>
<p><a href="https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_Rust-9180-green.svg" alt=
<p><a href="https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_Rust-9189-green.svg" alt=
"Lines in Rust code"></a> <a href="https://github.com/bestia-dev/cargo-auto/"><img src=
"https://img.shields.io/badge/Lines_in_Doc_comments-471-blue.svg" alt="Lines in Doc comments"></a> <a href=
"https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_comments-349-purple.svg" alt="Lines in Comments"></a>
"https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_comments-428-purple.svg" alt="Lines in Comments"></a>
<a href="https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_examples-0-yellow.svg" alt=
"Lines in examples"></a> <a href="https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_tests-1526-orange.svg"
"Lines in examples"></a> <a href="https://github.com/bestia-dev/cargo-auto/"><img src="https://img.shields.io/badge/Lines_in_tests-6334-orange.svg"
alt="Lines in tests"></a></p>
<p>Hashtags: #rustlang #tutorial #buildtool #developmenttool #cli<br>
My projects on GitHub are more like a tutorial than a finished product: <a href="https://github.com/bestia-dev/tutorials_rust_wasm">bestia-dev
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_auto_mod/fn.get_vec_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2><a href="index.html">In cargo_auto::template_new_auto_mod</a></h2>
<h1>Function <a href="../index.html">cargo_auto</a>::<wbr><a href="index.html">template_new_auto_mod</a>::<wbr><a class="fn" href=
"#">get_vec_file</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width=
"19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href=
"../../src/cargo_auto/template_new_auto_mod.rs.html#74-446">source</a> · <button id="toggle-all-docs" title=
"../../src/cargo_auto/template_new_auto_mod.rs.html#74-473">source</a> · <button id="toggle-all-docs" title=
"collapse all docs">[<span></span>]</button></span>
</div>
<pre class="rust item-decl"><code>pub fn get_vec_file() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.74.1/alloc/vec/struct.Vec.html" title=
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_auto_mod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2 class="location"><a href="#">Module template_new_auto_mod</a></h2>
<div class="main-heading">
<h1>Module <a href="../index.html">cargo_auto</a>::<wbr><a class="mod" href="#">template_new_auto_mod</a><button id="copy-path" title=
"Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt=
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_auto_mod.rs.html#1-446">source</a> ·
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_auto_mod.rs.html#1-473">source</a> ·
<button id="toggle-all-docs" title="collapse all docs">[<span></span>]</button></span>
</div>
<details class="toggle top-doc" open="">
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_cli_mod/fn.get_vec_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2><a href="index.html">In cargo_auto::template_new_cli_mod</a></h2>
<h1>Function <a href="../index.html">cargo_auto</a>::<wbr><a href="index.html">template_new_cli_mod</a>::<wbr><a class="fn" href=
"#">get_vec_file</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width=
"19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href=
"../../src/cargo_auto/template_new_cli_mod.rs.html#39-1221">source</a> · <button id="toggle-all-docs" title=
"../../src/cargo_auto/template_new_cli_mod.rs.html#39-2842">source</a> · <button id="toggle-all-docs" title=
"collapse all docs">[<span></span>]</button></span>
</div>
<pre class="rust item-decl"><code>pub fn get_vec_file() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.74.1/alloc/vec/struct.Vec.html" title=
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_cli_mod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2 class="location"><a href="#">Module template_new_cli_mod</a></h2>
<div class="main-heading">
<h1>Module <a href="../index.html">cargo_auto</a>::<wbr><a class="mod" href="#">template_new_cli_mod</a><button id="copy-path" title=
"Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt=
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_cli_mod.rs.html#1-1221">source</a> ·
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_cli_mod.rs.html#1-2842">source</a> ·
<button id="toggle-all-docs" title="collapse all docs">[<span></span>]</button></span>
</div>
<details class="toggle top-doc" open="">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2><a href="index.html">In cargo_auto::template_new_pwa_wasm_mod</a></h2>
<h1>Function <a href="../index.html">cargo_auto</a>::<wbr><a href="index.html">template_new_pwa_wasm_mod</a>::<wbr><a class="fn" href=
"#">get_vec_file</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width=
"19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href=
"../../src/cargo_auto/template_new_pwa_wasm_mod.rs.html#275-8601">source</a> · <button id="toggle-all-docs" title=
"../../src/cargo_auto/template_new_pwa_wasm_mod.rs.html#275-10226">source</a> · <button id="toggle-all-docs" title=
"collapse all docs">[<span></span>]</button></span>
</div>
<pre class="rust item-decl"><code>pub fn get_vec_file() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.74.1/alloc/vec/struct.Vec.html" title=
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_pwa_wasm_mod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2 class="location"><a href="#">Module template_new_pwa_wasm_mod</a></h2>
<h1>Module <a href="../index.html">cargo_auto</a>::<wbr><a class="mod" href="#">template_new_pwa_wasm_mod</a><button id="copy-path" title=
"Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt=
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href=
"../../src/cargo_auto/template_new_pwa_wasm_mod.rs.html#1-8601">source</a> · <button id="toggle-all-docs" title=
"../../src/cargo_auto/template_new_pwa_wasm_mod.rs.html#1-10226">source</a> · <button id="toggle-all-docs" title=
"collapse all docs">[<span></span>]</button></span>
</div>
<details class="toggle top-doc" open="">
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_wasm_mod/fn.get_vec_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2><a href="index.html">In cargo_auto::template_new_wasm_mod</a></h2>
<h1>Function <a href="../index.html">cargo_auto</a>::<wbr><a href="index.html">template_new_wasm_mod</a>::<wbr><a class="fn" href=
"#">get_vec_file</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width=
"19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href=
"../../src/cargo_auto/template_new_wasm_mod.rs.html#41-1304">source</a> · <button id="toggle-all-docs" title=
"../../src/cargo_auto/template_new_wasm_mod.rs.html#41-2927">source</a> · <button id="toggle-all-docs" title=
"collapse all docs">[<span></span>]</button></span>
</div>
<pre class="rust item-decl"><code>pub fn get_vec_file() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.74.1/alloc/vec/struct.Vec.html" title=
Expand Down
2 changes: 1 addition & 1 deletion docs/cargo_auto/template_new_wasm_mod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2 class="location"><a href="#">Module template_new_wasm_mod</a></h2>
<div class="main-heading">
<h1>Module <a href="../index.html">cargo_auto</a>::<wbr><a class="mod" href="#">template_new_wasm_mod</a><button id="copy-path" title=
"Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt=
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_wasm_mod.rs.html#1-1304">source</a> ·
"Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/cargo_auto/template_new_wasm_mod.rs.html#1-2927">source</a> ·
<button id="toggle-all-docs" title="collapse all docs">[<span></span>]</button></span>
</div>
<details class="toggle top-doc" open="">
Expand Down
2 changes: 1 addition & 1 deletion docs/implementors/core/ops/deref/trait.Deref.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf75261

Please sign in to comment.