summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-18 09:50:59 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-18 09:50:59 +0300
commit1df01d1cf9caa2c134b3292b6d7efa6ad1386818 (patch)
tree84a7fc4d9eff76d8b705e70978772fe33f7005c9 /src
downloadroadmap-1df01d1cf9caa2c134b3292b6d7efa6ad1386818.tar.gz
Add: first commit
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..3cb7e43
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,40 @@
+pub struct Step {
+ pub name: String,
+ pub label: String,
+ pub depends: Vec<String>,
+}
+
+impl Step {
+ pub fn new() -> Step {
+ Step {
+ name: "".to_string(),
+ label: "".to_string(),
+ depends: vec![],
+ }
+ }
+}
+
+pub struct Roadmap {
+ pub steps: Vec<Step>,
+}
+
+
+impl Roadmap {
+ pub fn new() -> Roadmap {
+ Roadmap {
+ steps: vec![],
+ }
+ }
+
+ pub fn from_yaml(_yaml: String) -> Option<Roadmap> {
+ None
+ }
+
+ pub fn get_step(self, _name: &str) -> Option<Step> {
+ None
+ }
+
+ pub fn as_dot(self) -> Option<String> {
+ None
+ }
+}