about summary refs log tree commit diff
path: root/users/glittershark/achilles/src/commands/compile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/achilles/src/commands/compile.rs')
-rw-r--r--users/glittershark/achilles/src/commands/compile.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/users/glittershark/achilles/src/commands/compile.rs b/users/glittershark/achilles/src/commands/compile.rs
deleted file mode 100644
index be8767575ab5..000000000000
--- a/users/glittershark/achilles/src/commands/compile.rs
+++ /dev/null
@@ -1,31 +0,0 @@
-use std::path::PathBuf;
-
-use clap::Clap;
-
-use crate::common::Result;
-use crate::compiler::{self, CompilerOptions};
-
-/// Compile a source file
-#[derive(Clap)]
-pub struct Compile {
-    /// File to compile
-    file: PathBuf,
-
-    /// Output file
-    #[clap(short = 'o')]
-    out_file: PathBuf,
-
-    #[clap(flatten)]
-    options: CompilerOptions,
-}
-
-impl Compile {
-    pub fn run(self) -> Result<()> {
-        eprintln!(
-            ">>> {} -> {}",
-            &self.file.to_string_lossy(),
-            self.out_file.to_string_lossy()
-        );
-        compiler::compile_file(&self.file, &self.out_file, &self.options)
-    }
-}