11use std:: path:: { Path , PathBuf } ;
22
33use clap:: { Parser , Subcommand } ;
4- use husk :: repl;
4+ use husk_lang :: repl;
55
66#[ derive( Parser , Debug ) ]
77#[ command( author, version, about, long_about = None ) ]
@@ -149,7 +149,7 @@ fn run_command(file: PathBuf, no_color: bool) -> anyhow::Result<()> {
149149 } )
150150 . map ( |p| p. to_path_buf ( ) ) ;
151151
152- match husk :: execute_script_with_context ( & code, Some ( file) , project_root) {
152+ match husk_lang :: execute_script_with_context ( & code, Some ( file) , project_root) {
153153 Ok ( _) => { }
154154 Err ( e) => {
155155 let mut stderr = Vec :: new ( ) ;
@@ -162,7 +162,7 @@ fn run_command(file: PathBuf, no_color: bool) -> anyhow::Result<()> {
162162}
163163
164164fn build_command ( cli : Build , _no_color : bool ) -> anyhow:: Result < ( ) > {
165- use husk :: HuskConfig ;
165+ use husk_lang :: HuskConfig ;
166166 use std:: fs;
167167
168168 // Load husk.toml configuration
@@ -231,7 +231,7 @@ fn build_command(cli: Build, _no_color: bool) -> anyhow::Result<()> {
231231
232232 let code = fs:: read_to_string ( & husk_file) ?;
233233
234- match husk :: transpile_to_js_with_packages ( & code) {
234+ match husk_lang :: transpile_to_js_with_packages ( & code) {
235235 Ok ( js) => {
236236 fs:: write ( & js_file, js) ?;
237237 println ! (
@@ -280,7 +280,7 @@ fn find_husk_files(dir: &std::path::Path) -> anyhow::Result<Vec<std::path::PathB
280280
281281fn compile_command ( cli : Compile , no_color : bool ) -> anyhow:: Result < ( ) > {
282282 let code = std:: fs:: read_to_string ( cli. file ) ?;
283- match husk :: transpile_to_js_with_packages ( & code) {
283+ match husk_lang :: transpile_to_js_with_packages ( & code) {
284284 Ok ( js) => println ! ( "{}" , js) ,
285285 Err ( e) => {
286286 let mut stderr = Vec :: new ( ) ;
@@ -363,8 +363,8 @@ module = "esm"
363363}
364364
365365fn test_command ( cli : Test , no_color : bool ) -> anyhow:: Result < ( ) > {
366- use husk :: test_runner:: { TestConfig , TestRunner } ;
367- use husk :: { Lexer , Parser , SemanticVisitor } ;
366+ use husk_lang :: test_runner:: { TestConfig , TestRunner } ;
367+ use husk_lang :: { Lexer , Parser , SemanticVisitor } ;
368368 use std:: fs;
369369
370370 // Determine the path to search for tests
@@ -497,11 +497,13 @@ fn collect_husk_files(path: &Path, files: &mut Vec<PathBuf>) -> anyhow::Result<(
497497}
498498
499499fn run_transpiler_tests (
500- ast : & [ husk :: Stmt ] ,
501- registry : & husk :: TestRegistry ,
500+ ast : & [ husk_lang :: Stmt ] ,
501+ registry : & husk_lang :: TestRegistry ,
502502 cli : & Test ,
503- ) -> anyhow:: Result < Vec < husk:: TestResult > > {
504- use husk:: test_transpiler:: { TestRunner as JsTestRunner , TestTranspileConfig , TestTranspiler } ;
503+ ) -> anyhow:: Result < Vec < husk_lang:: TestResult > > {
504+ use husk_lang:: test_transpiler:: {
505+ TestRunner as JsTestRunner , TestTranspileConfig , TestTranspiler ,
506+ } ;
505507 use std:: fs;
506508 use std:: process:: { Command , Stdio } ;
507509
0 commit comments