utils
created pr with
99.1
added 99.2
1: b41f14a ! 1: dca5cae feat: add ssh cert file support to ssh client impl
added 99.3
1: dca5cae = 1: dca5cae feat: add ssh cert file support to ssh client impl
-: ------- > 2: 31cd283 refactor: CertificateFile -> CertificateLocation
cmds
checkout latest patchset:
ssh pr.pico.sh print 99 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 99.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 99
Patchset
99.3
refactor: CertificateFile -> CertificateLocation
Eric Bower
2025-12-25T19:57:06ZSemantic diff summary
0 added,
2 modified,
0 signature changed,
0 removed
across 1 analyzed file
+8
-8
pipe/client.go
#
| ... | ... | @@ -182,12 +182,12 @@ func (c *Client) RemoveSession(id string) error { | |
| 182 | 182 | ||
| 183 | 183 | // SSHClientInfo represents the SSH connection information. | |
| 184 | 184 | type SSHClientInfo struct { | |
| 185 | - | RemoteHost string | |
| 186 | - | RemoteHostname string | |
| 187 | - | RemoteUser string | |
| 188 | - | KeyLocation string | |
| 189 | - | KeyPassphrase string | |
| 190 | - | CertificateFile string | |
| 185 | + | RemoteHost string | |
| 186 | + | RemoteHostname string | |
| 187 | + | RemoteUser string | |
| 188 | + | KeyLocation string | |
| 189 | + | KeyPassphrase string | |
| 190 | + | CertificateLocation string | |
| 191 | 191 | } | |
| 192 | 192 | ||
| 193 | 193 | // NewSSHClient creates a new SSH client. |
| ... | ... | @@ -228,8 +228,8 @@ func NewSSHClient(info *SSHClientInfo) (*ssh.Client, error) { | |
| 228 | 228 | return nil, err | |
| 229 | 229 | } | |
| 230 | 230 | ||
| 231 | - | if info.CertificateFile != "" { | |
| 232 | - | certPath, err := filepath.Abs(info.CertificateFile) | |
| 231 | + | if info.CertificateLocation != "" { | |
| 232 | + | certPath, err := filepath.Abs(info.CertificateLocation) | |
| 233 | 233 | if err != nil { | |
| 234 | 234 | return nil, err | |
| 235 | 235 | } |