Skip to content

Commit

Permalink
pipelines docs done
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Jan 18, 2023
1 parent 236b230 commit 5765e86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions logging/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tree and subtasks are marked with indentation.
- [x] Update the ECS documentation
- [x] Update arch/ecs.md
- [x] Search for any `XvcEntity` references that may be changed
- [x] Write pipelines code documentation

## v0.4.2

Expand Down
7 changes: 6 additions & 1 deletion pipeline/src/pipeline/step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ use serde::{Deserialize, Serialize};
use xvc_core::XvcRoot;
use xvc_ecs::{persist, XvcEntity};

/// A step (stage) in a pipeline.
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize, Ord, PartialOrd)]
pub struct XvcStep {
/// Name of the step
pub name: String,
}

persist!(XvcStep, "xvc-step");

impl XvcStep {
/// Search for a step with the given name in the given pipeline.
pub fn from_name(
xvc_root: &XvcRoot,
pipeline_e: &XvcEntity,
Expand All @@ -33,7 +36,8 @@ impl XvcStep {
}),
}
}
#[allow(dead_code)]

/// Search for a step with the given entity in the given pipeline.
pub fn from_entity(
xvc_root: &XvcRoot,
pipeline_e: &XvcEntity,
Expand All @@ -50,6 +54,7 @@ impl XvcStep {
}
}

// TODO: Link to the Documentation after it's written: https://github.com/iesahin/xvc/issues/202
state_machine! {
XvcStepState {
InitialStates { Begin }
Expand Down

0 comments on commit 5765e86

Please sign in to comment.