From 4bd0d181ae503aec8c179d26d5b8c100efbdbd72 Mon Sep 17 00:00:00 2001 From: "bestia.dev" Date: Wed, 1 May 2024 16:19:21 -0500 Subject: [PATCH] github_owner --- automation_tasks_rs/src/main.rs | 8 ++++---- .../cargo_auto_local_lib/template_new_auto_mod.rs.html | 8 ++++---- .../src/cargo_auto_local_lib/template_new_cli_mod.rs.html | 2 +- .../template_new_pwa_wasm_mod.rs.html | 2 +- .../cargo_auto_local_lib/template_new_wasm_mod.rs.html | 2 +- docs/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt | 2 +- src/template_new_auto_mod.rs | 8 ++++---- src/template_new_cli_mod.rs | 2 +- src/template_new_pwa_wasm_mod.rs | 2 +- src/template_new_wasm_mod.rs | 2 +- template_new_auto/src/main.rs | 8 ++++---- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/automation_tasks_rs/src/main.rs b/automation_tasks_rs/src/main.rs index 825cc84b..4faae7e5 100644 --- a/automation_tasks_rs/src/main.rs +++ b/automation_tasks_rs/src/main.rs @@ -424,7 +424,7 @@ fn task_github_new_release() { // take care of tags let tag_name_version = cl::git_tag_sync_check_create_push(&version); - let owner = cargo_toml.github_owner().unwrap(); + let github_owner = cargo_toml.github_owner().unwrap(); let repo_name = cargo_toml.package_name(); let now_date = cl::now_utc_date_iso(); let release_name = format!("Version {} ({})", &version, now_date); @@ -435,7 +435,7 @@ fn task_github_new_release() { let body_md_text = cl::body_text_from_releases_md().unwrap(); let github_client = github_mod::GitHubClient::new_with_stored_secret_token(); - let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); + let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&github_owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); // early exit on error if let Some(error_message) = json_value.get("message") { eprintln!("{RED}{error_message}{RESET}"); @@ -477,7 +477,7 @@ fn task_github_new_release() { .run().unwrap_or_else(|e| panic!("{e}")); // upload asset - cgl::github_api_upload_asset_to_release(&github_client, &owner, &repo_name, &release_id, &tar_name); + cgl::github_api_upload_asset_to_release(&github_client, &github_owner, &repo_name, &release_id, &tar_name); cl::ShellCommandLimitedDoubleQuotesSanitizer::new( r#"rm "{tar_name_sanitized_for_double_quote}" "#).unwrap_or_else(|e| panic!("{e}")) @@ -494,7 +494,7 @@ fn task_github_new_release() { println!( r#" -{GREEN}https://github.com/{owner}/{repo_name}/releases{RESET} +{GREEN}https://github.com/{github_owner}/{repo_name}/releases{RESET} "# ); } diff --git a/docs/src/cargo_auto_local_lib/template_new_auto_mod.rs.html b/docs/src/cargo_auto_local_lib/template_new_auto_mod.rs.html index 2f5eb57b..ff25a3e0 100644 --- a/docs/src/cargo_auto_local_lib/template_new_auto_mod.rs.html +++ b/docs/src/cargo_auto_local_lib/template_new_auto_mod.rs.html @@ -1992,7 +1992,7 @@

Files

// take care of tags let tag_name_version = cl::git_tag_sync_check_create_push(&version); - let owner = cargo_toml.github_owner().unwrap(); + let github_owner = cargo_toml.github_owner().unwrap(); let repo_name = cargo_toml.package_name(); let now_date = cl::now_utc_date_iso(); let release_name = format!("Version {} ({})", &version, now_date); @@ -2003,7 +2003,7 @@

Files

let body_md_text = cl::body_text_from_releases_md().unwrap(); let github_client = github_mod::GitHubClient::new_with_stored_secret_token(); - let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); + let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&github_owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); // early exit on error if let Some(error_message) = json_value.get("message") { eprintln!("{RED}{error_message}{RESET}"); @@ -2045,7 +2045,7 @@

Files

.run().unwrap_or_else(|e| panic!("{e}")); // upload asset - cgl::github_api_upload_asset_to_release(&github_client, &owner, &repo_name, &release_id, &tar_name); + cgl::github_api_upload_asset_to_release(&github_client, &github_owner, &repo_name, &release_id, &tar_name); cl::ShellCommandLimitedDoubleQuotesSanitizer::new( r#"rm "{tar_name_sanitized_for_double_quote}" "#).unwrap_or_else(|e| panic!("{e}")) @@ -2062,7 +2062,7 @@

Files

println!( r#" -{GREEN}https://github.com/{owner}/{repo_name}/releases{RESET} +{GREEN}https://github.com/{github_owner}/{repo_name}/releases{RESET} "# ); } diff --git a/docs/src/cargo_auto_local_lib/template_new_cli_mod.rs.html b/docs/src/cargo_auto_local_lib/template_new_cli_mod.rs.html index 28c084f2..6c42dea8 100644 --- a/docs/src/cargo_auto_local_lib/template_new_cli_mod.rs.html +++ b/docs/src/cargo_auto_local_lib/template_new_cli_mod.rs.html @@ -155,7 +155,7 @@

Files

} if github_owner_or_organization.is_none() { println!("{RED}Error: Github owner argument is missing: `cargo auto new_cli project_name github_owner_or_organization`{RESET}"); +"string">"{RED}Error: Github github_owner argument is missing: `cargo auto new_cli project_name github_owner_or_organization`{RESET}"); return; } let rust_project_name = rust_project_name.unwrap(); diff --git a/docs/src/cargo_auto_local_lib/template_new_pwa_wasm_mod.rs.html b/docs/src/cargo_auto_local_lib/template_new_pwa_wasm_mod.rs.html index 71cdd353..84151e37 100644 --- a/docs/src/cargo_auto_local_lib/template_new_pwa_wasm_mod.rs.html +++ b/docs/src/cargo_auto_local_lib/template_new_pwa_wasm_mod.rs.html @@ -325,7 +325,7 @@

Files

} if github_owner_or_organization.is_none() { println!("{RED}Error: Github owner or Organization argument is missing: `cargo auto new_pwa_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); +"string">"{RED}Error: Github github_owner or Organization argument is missing: `cargo auto new_pwa_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); return; } if web_server_domain.is_none() { diff --git a/docs/src/cargo_auto_local_lib/template_new_wasm_mod.rs.html b/docs/src/cargo_auto_local_lib/template_new_wasm_mod.rs.html index 20cc003d..624ee112 100644 --- a/docs/src/cargo_auto_local_lib/template_new_wasm_mod.rs.html +++ b/docs/src/cargo_auto_local_lib/template_new_wasm_mod.rs.html @@ -169,7 +169,7 @@

Files

} if github_owner_or_organization.is_none() { println!("{RED}Error: Github owner or Organization argument is missing: `cargo auto new_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); +"string">"{RED}Error: Github github_owner or Organization argument is missing: `cargo auto new_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); return; } if web_server_domain.is_none() { diff --git a/docs/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt b/docs/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt index 16fe87b0..924d77a6 100644 --- a/docs/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt +++ b/docs/static.files/LICENSE-APACHE-b91fa81cba47b86a.txt @@ -9,7 +9,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - "Licensor" shall mean the copyright owner or entity authorized by + "Licensor" shall mean the copyright github_owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all diff --git a/src/template_new_auto_mod.rs b/src/template_new_auto_mod.rs index f7b062dd..31c01fd7 100644 --- a/src/template_new_auto_mod.rs +++ b/src/template_new_auto_mod.rs @@ -475,7 +475,7 @@ fn task_github_new_release() { // take care of tags let tag_name_version = cl::git_tag_sync_check_create_push(&version); - let owner = cargo_toml.github_owner().unwrap(); + let github_owner = cargo_toml.github_owner().unwrap(); let repo_name = cargo_toml.package_name(); let now_date = cl::now_utc_date_iso(); let release_name = format!("Version {} ({})", &version, now_date); @@ -486,7 +486,7 @@ fn task_github_new_release() { let body_md_text = cl::body_text_from_releases_md().unwrap(); let github_client = github_mod::GitHubClient::new_with_stored_secret_token(); - let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); + let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&github_owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); // early exit on error if let Some(error_message) = json_value.get("message") { eprintln!("{RED}{error_message}{RESET}"); @@ -528,7 +528,7 @@ fn task_github_new_release() { .run().unwrap_or_else(|e| panic!("{e}")); // upload asset - cgl::github_api_upload_asset_to_release(&github_client, &owner, &repo_name, &release_id, &tar_name); + cgl::github_api_upload_asset_to_release(&github_client, &github_owner, &repo_name, &release_id, &tar_name); cl::ShellCommandLimitedDoubleQuotesSanitizer::new( r#"rm "{tar_name_sanitized_for_double_quote}" "#).unwrap_or_else(|e| panic!("{e}")) @@ -545,7 +545,7 @@ fn task_github_new_release() { println!( r#" -{GREEN}https://github.com/{owner}/{repo_name}/releases{RESET} +{GREEN}https://github.com/{github_owner}/{repo_name}/releases{RESET} "# ); } diff --git a/src/template_new_cli_mod.rs b/src/template_new_cli_mod.rs index 532577cc..60c5e71c 100644 --- a/src/template_new_cli_mod.rs +++ b/src/template_new_cli_mod.rs @@ -13,7 +13,7 @@ pub fn new_cli(rust_project_name: Option, github_owner_or_organization: return; } if github_owner_or_organization.is_none() { - println!("{RED}Error: Github owner argument is missing: `cargo auto new_cli project_name github_owner_or_organization`{RESET}"); + println!("{RED}Error: github_owner argument is missing: `cargo auto new_cli project_name github_owner_or_organization`{RESET}"); return; } let rust_project_name = rust_project_name.unwrap(); diff --git a/src/template_new_pwa_wasm_mod.rs b/src/template_new_pwa_wasm_mod.rs index da4f2788..f84cf272 100644 --- a/src/template_new_pwa_wasm_mod.rs +++ b/src/template_new_pwa_wasm_mod.rs @@ -72,7 +72,7 @@ pub fn new_pwa_wasm(rust_project_name: Option, github_owner_or_organizat return; } if github_owner_or_organization.is_none() { - println!("{RED}Error: Github owner or Organization argument is missing: `cargo auto new_pwa_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); + println!("{RED}Error: github_owner or Organization argument is missing: `cargo auto new_pwa_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); return; } if web_server_domain.is_none() { diff --git a/src/template_new_wasm_mod.rs b/src/template_new_wasm_mod.rs index 0fbba8d1..64edd248 100644 --- a/src/template_new_wasm_mod.rs +++ b/src/template_new_wasm_mod.rs @@ -13,7 +13,7 @@ pub fn new_wasm(rust_project_name: Option, github_owner_or_organization: return; } if github_owner_or_organization.is_none() { - println!("{RED}Error: Github owner or Organization argument is missing: `cargo auto new_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); + println!("{RED}Error: github_owner or Organization argument is missing: `cargo auto new_wasm project_name github_owner_or_organization web_server server_username`{RESET}"); return; } if web_server_domain.is_none() { diff --git a/template_new_auto/src/main.rs b/template_new_auto/src/main.rs index fb46e62d..535555dc 100644 --- a/template_new_auto/src/main.rs +++ b/template_new_auto/src/main.rs @@ -388,7 +388,7 @@ fn task_github_new_release() { // take care of tags let tag_name_version = cl::git_tag_sync_check_create_push(&version); - let owner = cargo_toml.github_owner().unwrap(); + let github_owner = cargo_toml.github_owner().unwrap(); let repo_name = cargo_toml.package_name(); let now_date = cl::now_utc_date_iso(); let release_name = format!("Version {} ({})", &version, now_date); @@ -399,7 +399,7 @@ fn task_github_new_release() { let body_md_text = cl::body_text_from_releases_md().unwrap(); let github_client = github_mod::GitHubClient::new_with_stored_secret_token(); - let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); + let json_value = github_client.send_to_github_api(cgl::github_api_create_new_release(&github_owner, &repo_name, &tag_name_version, &release_name, branch, &body_md_text)); // early exit on error if let Some(error_message) = json_value.get("message") { eprintln!("{RED}{error_message}{RESET}"); @@ -441,7 +441,7 @@ fn task_github_new_release() { .run().unwrap_or_else(|e| panic!("{e}")); // upload asset - cgl::github_api_upload_asset_to_release(&github_client, &owner, &repo_name, &release_id, &tar_name); + cgl::github_api_upload_asset_to_release(&github_client, &github_owner, &repo_name, &release_id, &tar_name); cl::ShellCommandLimitedDoubleQuotesSanitizer::new( r#"rm "{tar_name_sanitized_for_double_quote}" "#).unwrap_or_else(|e| panic!("{e}")) @@ -458,7 +458,7 @@ fn task_github_new_release() { println!( r#" -{GREEN}https://github.com/{owner}/{repo_name}/releases{RESET} +{GREEN}https://github.com/{github_owner}/{repo_name}/releases{RESET} "# ); }