had to cleanup a lot in relation to optional returns

This commit is contained in:
2025-01-01 13:40:24 +01:00
parent cffd5e2f9c
commit 914e1f5073
135 changed files with 4165 additions and 3530 deletions

View File

@@ -14,7 +14,7 @@ pub fn install_alertmanager(args_ InstallArgs) ! {
version := '0.27.0'
res := os.execute('${osal.profile_path_source_and()} alertmanager --version')
res := os.execute('${osal.profile_path_source_and()!} alertmanager --version')
if res.exit_code == 0 {
r := res.output.split_into_lines().filter(it.trim_space().starts_with('alertmanager'))
if r.len != 1 {
@@ -32,7 +32,7 @@ pub fn install_alertmanager(args_ InstallArgs) ! {
console.print_header('install alertmanager')
mut url := ''
if osal.is_linux_intel() {
if core.is_linux_intel()! {
url = 'https://github.com/prometheus/alertmanager/releases/download/v${version}/alertmanager-${version}.linux-amd64.tar.gz'
} else {
return error('unsported platform, only linux amd64 for now')