summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-20 10:28:01 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-20 10:28:01 +0300
commitf63b44297bca294194f7ad467b6f74c13099c3d7 (patch)
tree97475527239f820164bbca56f2a6c8cef2d547e5 /src
parentbd6cbcd8aaa2bff6f611e73c66ba0affdf67f134 (diff)
downloadroadmap-f63b44297bca294194f7ad467b6f74c13099c3d7.tar.gz
Add: main program for roadmap2dot
Diffstat (limited to 'src')
-rw-r--r--src/bin/roadmap2dot.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/roadmap2dot.rs b/src/bin/roadmap2dot.rs
new file mode 100644
index 0000000..a1435e0
--- /dev/null
+++ b/src/bin/roadmap2dot.rs
@@ -0,0 +1,15 @@
+use roadmap::Roadmap;
+
+fn main() {
+ let r = Roadmap::from_yaml("
+first:
+ label: first step
+
+second:
+ label: the second step
+ depends:
+ - first
+");
+
+ println!("{}", r.as_dot().unwrap());
+}