Compare commits

...

5 Commits

Author SHA1 Message Date
139f46b6c3 bump version to 1.0.33 2025-09-07 08:00:13 +04:00
9f424d9d33 ... 2025-09-07 07:59:58 +04:00
154a5139d9 bump version to 1.0.32 2025-09-07 07:50:13 +04:00
eb81e69bf4 ... 2025-09-07 07:49:47 +04:00
4b41bdc588 ... 2025-09-07 07:40:50 +04:00
6 changed files with 28 additions and 27 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 }}." - run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
- uses: maxim-lobanov/setup-xcode@v1 - uses: maxim-lobanov/setup-xcode@v1
if: runner.os == 'macOS'
with: with:
xcode-version: latest-stable xcode-version: latest-stable

View File

@@ -48,7 +48,7 @@ fn do() ! {
mut cmd := Command{ mut cmd := Command{
name: 'hero' name: 'hero'
description: 'Your HERO toolset.' description: 'Your HERO toolset.'
version: '1.0.31' version: '1.0.33'
} }
// herocmds.cmd_run_add_flags(mut cmd) // herocmds.cmd_run_add_flags(mut cmd)

View File

@@ -141,28 +141,26 @@ fn test_user_mgmt() ! {
*/ */
} }
fn main() { console.print_header('🔑 SSH Agent Example - HeroLib')
console.print_header('🔑 SSH Agent Example - HeroLib')
demo_sshagent_basic() or { demo_sshagent_basic() or {
console.print_stderr(' Basic demo failed: ${err}') console.print_stderr(' Basic demo failed: ${err}')
return return
}
demo_sshagent_key_management() or {
console.print_stderr(' Key management demo failed: ${err}')
return
}
demo_sshagent_with_existing_keys() or {
console.print_stderr(' Existing keys demo failed: ${err}')
return
}
test_user_mgmt() or {
console.print_stderr(' User management test failed: ${err}')
return
}
console.print_header('🎉 All SSH Agent demos completed successfully!')
} }
demo_sshagent_key_management() or {
console.print_stderr(' Key management demo failed: ${err}')
return
}
demo_sshagent_with_existing_keys() or {
console.print_stderr(' Existing keys demo failed: ${err}')
return
}
test_user_mgmt() or {
console.print_stderr(' User management test failed: ${err}')
return
}
console.print_header('🎉 All SSH Agent demos completed successfully!')

View File

@@ -4,7 +4,7 @@ set -e
os_name="$(uname -s)" os_name="$(uname -s)"
arch_name="$(uname -m)" arch_name="$(uname -m)"
version='1.0.31' version='1.0.33'
# Base URL for GitHub releases # Base URL for GitHub releases

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 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() ! { pub fn (mut agent SSHAgent) cleanup_orphaned_agents() ! {
user := os.getenv('USER') 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 // check if specific agent PID is valid and responsive

View File

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