summaryrefslogtreecommitdiff
path: root/src/bin/subplot-filter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/subplot-filter.rs')
-rw-r--r--src/bin/subplot-filter.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/bin/subplot-filter.rs b/src/bin/subplot-filter.rs
deleted file mode 100644
index 6c01241..0000000
--- a/src/bin/subplot-filter.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use anyhow::Result;
-use std::io::{self, Read, Write};
-use subplot::{Document, Style};
-
-fn main() -> Result<()> {
- let mut buffer = String::new();
- let mut stdin = io::stdin();
- stdin.read_to_string(&mut buffer)?;
- let basedir = std::path::Path::new(".");
- let style = Style::default();
- let mut doc = Document::from_json(&basedir, vec![], &buffer, style, None)?;
- doc.typeset();
- let bytes = doc.ast()?.into_bytes();
- io::stdout().write_all(&bytes)?;
- Ok(())
-}