utils

created pr with 99.1 on 2025-12-25T04:21:37Z · by c8ef7d19
added 99.2 on 2025-12-25T04:22:52Z · by c8ef7d19
1: b41f14a ! 1: dca5cae feat: add ssh cert file support to ssh client impl
added 99.3 on 2025-12-25T20:00:24Z · by c8ef7d19
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 -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 99.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 99
+8 -8 pipe/client.go #
......@@ -182,12 +182,12 @@ func (c *Client) RemoveSession(id string) error {
182182
183183 // SSHClientInfo represents the SSH connection information.
184184 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
191191 }
192192
193193 // NewSSHClient creates a new SSH client.
......@@ -228,8 +228,8 @@ func NewSSHClient(info *SSHClientInfo) (*ssh.Client, error) {
228228 return nil, err
229229 }
230230
231- if info.CertificateFile != "" {
232- certPath, err := filepath.Abs(info.CertificateFile)
231+ if info.CertificateLocation != "" {
232+ certPath, err := filepath.Abs(info.CertificateLocation)
233233 if err != nil {
234234 return nil, err
235235 }
Back to top