From 62ed18fb1fdd54e10b2f97b75196b73193c89290 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Tue, 6 Aug 2024 18:39:07 +0000 Subject: [PATCH] always install arkade --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d24e1db..cbd533d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,6 +22,7 @@ pub fn chart(args: String) -> FnResult { #[plugin_fn] pub fn get(args: String) -> FnResult { + setup_arkade()?; let stdout = dag() .pipeline("get")? .with_exec(vec!["arkade", "get", &args])? @@ -31,6 +32,7 @@ pub fn get(args: String) -> FnResult { #[plugin_fn] pub fn install(args: String) -> FnResult { + setup_arkade()?; let stdout = dag() .pipeline("install")? .with_exec(vec!["arkade", "install", &args])? @@ -40,6 +42,7 @@ pub fn install(args: String) -> FnResult { #[plugin_fn] pub fn oci(args: String) -> FnResult { + setup_arkade()?; let stdout = dag() .pipeline("oci")? .with_exec(vec!["arkade", "oci", &args])? @@ -49,6 +52,7 @@ pub fn oci(args: String) -> FnResult { #[plugin_fn] pub fn system(args: String) -> FnResult { + setup_arkade()?; let stdout = dag() .pipeline("system")? .with_exec(vec!["arkade", "system", &args])?