From 112c3603e77c9500e71d703b15ce2ae40b122d5a Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 30 Jul 2023 20:44:21 -0700 Subject: [PATCH] update --- docs/README.md | 6 +++--- src/args.rs | 8 +++----- src/main.rs | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/README.md b/docs/README.md index 8b3852d..fa77e40 100644 --- a/docs/README.md +++ b/docs/README.md @@ -41,13 +41,13 @@ neomake workflow init -tpython Now, execute the `count` node. Per default, `neomake` will only use exactly one worker thread and execute the endless embedded python program. ```bash -neomake plan -ccount | neomake x -fyaml +neomake plan -ccount | neomake x ``` In order to work on all 4 desired executions (defined as 2x2 matrix), call neomake with the number of worker threads desired. Now you will see that the 4 programs will be executed in parallel. ```bash -neomake plan -ccount | neomake x -fyaml -w4 +neomake plan -ccount | neomake x -w4 ``` ## Graph execution @@ -55,7 +55,7 @@ neomake plan -ccount | neomake x -fyaml -w4 Execute nodes as follows. ```bash -neomake plan -f ./test/.neomake.yaml -c bravo -c charlie -oyaml | neomake execute -fyaml +neomake plan -f ./test/.neomake.yaml -c bravo -c charlie -oron | neomake execute -fron ``` Nodes can define an array of dependenies (other nodes) that need to be executed beforehand. All node executions are deduplicated so that every node is only executed exactly once if requested for invocation or as a prerequisite on any level to any node that is to be executed. Alongside the ability to specify multiple node to be executed per command line call, this feature allows for complex workflows to be executed.\ diff --git a/src/args.rs b/src/args.rs index a7712f9..9e09bf7 100644 --- a/src/args.rs +++ b/src/args.rs @@ -1,4 +1,7 @@ +use crate::{error::Error, plan::ExecutionPlan, workflow::Workflow}; use anyhow::Result; +use clap::{Arg, ArgAction}; +use itertools::Itertools; use std::{ collections::{HashMap, HashSet}, io::Read, @@ -6,11 +9,6 @@ use std::{ str::FromStr, }; -use clap::{Arg, ArgAction}; -use itertools::Itertools; - -use crate::{error::Error, plan::ExecutionPlan, workflow::Workflow}; - #[derive(Debug, Eq, PartialEq)] pub(crate) enum Privilege { Normal, diff --git a/src/main.rs b/src/main.rs index e368782..78e45f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,6 @@ use crate::{compiler::Compiler, workflow::Workflow}; #[tokio::main] async fn main() -> Result<()> { let cmd = crate::args::ClapArgumentLoader::load()?; - cmd.validate()?; match cmd.command { | crate::args::Command::Manual { path, format } => {