You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/flags/flags.go
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,6 @@ var (
79
79
CACertstring
80
80
Certstring
81
81
CertKeystring
82
-
CertKeyPassstring
83
82
)
84
83
85
84
funcinit() {
@@ -162,7 +161,6 @@ func init() {
162
161
pflag.StringVar(&CACert, "cacert", getConfig(config, func() *string { returnconfig.Remote.CACert }, ""), "Path to a custom CA certificate for HTTPS connections.")
163
162
pflag.StringVar(&Cert, "cert", getConfig(config, func() *string { returnconfig.Remote.Cert }, ""), "Path to a client certificate for HTTPS connections.")
164
163
pflag.StringVar(&CertKey, "cert-key", getConfig(config, func() *string { returnconfig.Remote.CertKey }, ""), "Path to a client certificate key for HTTPS connections.")
165
-
pflag.StringVar(&CertKeyPass, "cert-key-pass", getConfig(config, func() *string { returnconfig.Remote.CertKeyPass }, ""), "Passphrase for the client certificate key.")
166
164
}
167
165
pflag.Parse()
168
166
}
@@ -213,10 +211,6 @@ func Validate() error {
213
211
returnerrors.New("task: --cert and --cert-key must be provided together")
214
212
}
215
213
216
-
ifCertKeyPass!=""&&Cert=="" {
217
-
returnerrors.New("task: --cert-key-pass requires --cert and --cert-key")
218
-
}
219
-
220
214
returnnil
221
215
}
222
216
@@ -260,7 +254,6 @@ func (o *flagsOption) ApplyToExecutor(e *task.Executor) {
0 commit comments