From cb8c29223b0016eb2570f633bc781a6efb85b109 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev <829578+DenisGorbachev@users.noreply.github.com> Date: Sat, 22 Feb 2025 09:40:47 +0700 Subject: [PATCH] fix!: rename args to cmd --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f5f876c..8a38b64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,13 +89,13 @@ pub struct CreateRustGithubRepo { project_test_cmd: String, #[arg(long, help = "Shell command to add new files (supports substitutions - see help below)", default_value = "git add .")] - repo_add_args: String, + repo_add_cmd: String, #[arg(long, help = "Shell command to make a commit (supports substitutions - see help below)", default_value = "git commit -m \"feat: setup project\"")] - repo_commit_args: String, + repo_commit_cmd: String, #[arg(long, help = "Shell command to push the commit (supports substitutions - see help below)", default_value = "git push")] - repo_push_args: String, + repo_push_cmd: String, #[arg(long, help = "Shell command to execute after all other commands (supports substitutions - see help below)")] after_all_cmd: Option, @@ -208,19 +208,19 @@ impl CreateRustGithubRepo { // add executor - .exec(replace_all(self.repo_add_args, &substitutions), &dir, stderr) + .exec(replace_all(self.repo_add_cmd, &substitutions), &dir, stderr) .await .context("Failed to add files for commit")?; // commit executor - .exec(replace_all(self.repo_commit_args, &substitutions), &dir, stderr) + .exec(replace_all(self.repo_commit_cmd, &substitutions), &dir, stderr) .await .context("Failed to commit changes")?; // push executor - .exec(replace_all(self.repo_push_args, &substitutions), &dir, stderr) + .exec(replace_all(self.repo_push_cmd, &substitutions), &dir, stderr) .await .context("Failed to push changes")?;