|
35 | 35 | sourceRpmGitName string |
36 | 36 | sshKeyLocation string |
37 | 37 | sshUser string |
| 38 | + sshAskKeyPassword bool |
38 | 39 | upstreamPrefix string |
39 | 40 | version int |
40 | 41 | storageAddr string |
@@ -80,6 +81,7 @@ func mn(_ *cobra.Command, _ []string) { |
80 | 81 | RpmPrefix: rpmPrefix, |
81 | 82 | SshKeyLocation: sshKeyLocation, |
82 | 83 | SshUser: sshUser, |
| 84 | + SshKeyPassword: sshAskKeyPassword, |
83 | 85 | ManualCommits: manualCommits, |
84 | 86 | UpstreamPrefix: upstreamPrefix, |
85 | 87 | GitCommitterName: gitCommitterName, |
@@ -130,6 +132,7 @@ func main() { |
130 | 132 | root.Flags().StringVar(&sourceRpmGitName, "source-rpm-git-name", "", "Actual git repo name of package if name is different from source-rpm value") |
131 | 133 | root.Flags().StringVar(&sshKeyLocation, "ssh-key-location", "", "Location of the SSH key to use to authenticate against upstream") |
132 | 134 | root.Flags().StringVar(&sshUser, "ssh-user", "git", "SSH User") |
| 135 | + root.Flags().BoolVar(&sshAskKeyPassword, "ssh-key-password", false, "If enabled, prompt for ssh key password") |
133 | 136 | root.Flags().StringVar(&gitCommitterName, "git-committer-name", "rockyautomation", "Name of committer") |
134 | 137 | root. Flags(). StringVar( &gitCommitterEmail, "git-committer-email", "[email protected]", "Email of committer") |
135 | 138 | root.Flags().StringVar(&modulePrefix, "module-prefix", "https://git.centos.org/modules", "Where to retrieve modules if exists. Only used when source-rpm is a git repo") |
|
0 commit comments