mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
1.16.0 (#140)
* consolidate deserializers * key value list doc * use string list deserializers for all entity Vec<String> * add additional env files support * plumbing for Action resource * js client readme indentation * regen lock * add action UI * action backend * start on action frontend * update lock * get up to speed * get action started * clean up default action file * seems to work * toml export include action * action works * action works part 2 * bump rust version to 1.82.0 * copy deno bin from bin image * action use local dir * update not having changes doesn't return error * format with prettier * support yaml formatting with prettier * variable no change is Ok
This commit is contained in:
@@ -2,7 +2,7 @@ use std::path::Path;
|
||||
|
||||
use komodo_client::{
|
||||
entities::{komodo_timestamp, update::Log},
|
||||
parser::parse_multiline_command,
|
||||
parsers::parse_multiline_command,
|
||||
};
|
||||
use run_command::{async_run_command, CommandOutput};
|
||||
|
||||
@@ -14,8 +14,13 @@ pub async fn run_komodo_command(
|
||||
stage: &str,
|
||||
path: impl Into<Option<&Path>>,
|
||||
command: impl AsRef<str>,
|
||||
parse_multiline: bool,
|
||||
) -> Log {
|
||||
let command = parse_multiline_command(command);
|
||||
let command = if parse_multiline {
|
||||
parse_multiline_command(command)
|
||||
} else {
|
||||
command.as_ref().to_string()
|
||||
};
|
||||
let command = if let Some(path) = path.into() {
|
||||
format!("cd {} && {command}", path.display(),)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user