This commit is contained in:
2025-09-07 07:59:58 +04:00
parent 154a5139d9
commit 9f424d9d33
4 changed files with 24 additions and 24 deletions

View File

@@ -35,6 +35,7 @@ jobs:
- run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
- uses: maxim-lobanov/setup-xcode@v1
if: runner.os == 'macOS'
with:
xcode-version: latest-stable

View File

@@ -141,7 +141,6 @@ fn test_user_mgmt() ! {
*/
}
fn main() {
console.print_header('🔑 SSH Agent Example - HeroLib')
demo_sshagent_basic() or {
@@ -165,4 +164,3 @@ fn main() {
}
console.print_header('🎉 All SSH Agent demos completed successfully!')
}

View File

@@ -58,7 +58,7 @@ pub fn (mut agent SSHAgent) is_agent_responsive() bool {
return res.exit_code == 0 || res.exit_code == 1 // 1 means no keys, but agent is running
}
// cleanup orphaned ssh-agent processes
// cleanup orphaned ssh-agent processes, means all agents for the logged in user
pub fn (mut agent SSHAgent) cleanup_orphaned_agents() ! {
user := os.getenv('USER')
@@ -77,6 +77,7 @@ pub fn (mut agent SSHAgent) cleanup_orphaned_agents() ! {
}
}
}
$dbg;
}
// check if specific agent PID is valid and responsive

BIN
release

Binary file not shown.