Skip to content

Commit

Permalink
feat(trc):remove update subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Mar 31, 2024
1 parent fecaddc commit cfa68ef
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 48 deletions.
1 change: 0 additions & 1 deletion src/compiler/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,6 @@ impl<'a> AstBuilder<'a> {
now_module_path = now_module_path.join(path.clone());
if now_module_path.exists() {
// 创建新的compiler来编译模块
// let mut new_compiler = Compiler::new(Option::new());
} else {
return self.try_err(
istry,
Expand Down
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ macro_rules! make_commands {
make_commands!(Commands, Build {}, Run {}, Dis {
#[arg(short, long, default_value_t = false)]
rustcode: bool
}, | Tshell {}, Update{}, Version {});
}, | Tshell {}, Version {});

shadow_rs::shadow!(build);

Expand All @@ -67,11 +67,6 @@ pub fn run() -> Result<(), Box<dyn Error>> {
Commands::Tshell {} => {
tools::tshell::tshell()?;
}
Commands::Update {} => {
if let Err(e) = tools::update::update() {
println!("{}", e);
}
}
Commands::Run { optimize, files } => {
for i in files {
match tools::run::run(compiler::CompileOption::new(
Expand Down
1 change: 0 additions & 1 deletion src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ pub mod compile_tool;
pub mod dis;
pub mod run;
pub mod tshell;
pub mod update;

pub use compile_tool::compile;
40 changes: 0 additions & 40 deletions src/tools/update.rs

This file was deleted.

0 comments on commit cfa68ef

Please sign in to comment.