...
This commit is contained in:
1
.github/workflows/hero_build.yml
vendored
1
.github/workflows/hero_build.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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!')
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user