[PR #114] [MERGED] feat: pre command for ssh deploy #848

Closed
opened 2026-03-03 01:06:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/certimate-go/certimate/pull/114
Author: @sgpublic
Created: 9/27/2024
Status: Merged
Merged: 9/27/2024
Merged by: @usual2970

Base: mainHead: feat/pre_command


📝 Commits (2)

  • 9acdd15 feat: pre command for ssh deploy
  • e7e2e47 chore: create a func for running ssh command

📊 Changes

4 files changed (+55 additions, -24 deletions)

View changed files

📝 internal/deployer/ssh.go (+34 -23)
📝 ui/package.json (+1 -1)
📝 ui/src/components/certimate/AccessSSHForm.tsx (+19 -0)
📝 ui/src/domain/access.ts (+1 -0)

📄 Description

Close #72

internal/deployer/ssh.go 里,因为一个 session 只能使用一次 session.Run,想实现增加一个前置命令就只能再 New 个 session,我这里的写法我不太确定是否符合这个项目的风格,大佬轻喷(doge


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/certimate-go/certimate/pull/114 **Author:** [@sgpublic](https://github.com/sgpublic) **Created:** 9/27/2024 **Status:** ✅ Merged **Merged:** 9/27/2024 **Merged by:** [@usual2970](https://github.com/usual2970) **Base:** `main` ← **Head:** `feat/pre_command` --- ### 📝 Commits (2) - [`9acdd15`](https://github.com/certimate-go/certimate/commit/9acdd15c1e62a883b170a0404029b6f74a69e40b) feat: pre command for ssh deploy - [`e7e2e47`](https://github.com/certimate-go/certimate/commit/e7e2e4786d1afc4415961e75298069d0426f1395) chore: create a func for running ssh command ### 📊 Changes **4 files changed** (+55 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `internal/deployer/ssh.go` (+34 -23) 📝 `ui/package.json` (+1 -1) 📝 `ui/src/components/certimate/AccessSSHForm.tsx` (+19 -0) 📝 `ui/src/domain/access.ts` (+1 -0) </details> ### 📄 Description Close #72 在 `internal/deployer/ssh.go` 里,因为一个 session 只能使用一次 `session.Run`,想实现增加一个前置命令就只能再 New 个 session,我这里的写法我不太确定是否符合这个项目的风格,大佬轻喷(doge --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:06:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#848
No description provided.