diff --git a/ducklingscript/cli/__init__.py b/ducklingscript/cli/__init__.py index 51f3a39..eda06ba 100644 --- a/ducklingscript/cli/__init__.py +++ b/ducklingscript/cli/__init__.py @@ -6,13 +6,9 @@ from .new import new from .interpret import interpret -all_commands = [compile, version, help, all, new] +all_commands = [compile, version, help, all, new, interpret] -app.command()(compile) -app.command()(version) -app.command()(help) -app.command()(all) -app.command()(new) -app.command()(interpret) +for command in all_commands: + app.command()(command) __all__ = ["app"] diff --git a/ducklingscript/cli/compile.py b/ducklingscript/cli/compile.py index 1968a6f..b35f6ef 100644 --- a/ducklingscript/cli/compile.py +++ b/ducklingscript/cli/compile.py @@ -57,9 +57,9 @@ def compile( Compile a file, and output it to the given location with the given name. """ options = Configuration.config().to_dict() - options.update({"stack_limit": stack_limit}) - options.update({"include_comments": comments}) - options.update({"create_sourcemap": sourcemap}) + options["stack_limit"] = stack_limit + options["include_comments"] = comments + options["create_sourcemap"] = sourcemap compile_options = CompileOptions(**options) compiled: Compiled | None = None diff --git a/ducklingscript/cli/new.py b/ducklingscript/cli/new.py index 2f4ef9f..079c071 100644 --- a/ducklingscript/cli/new.py +++ b/ducklingscript/cli/new.py @@ -25,7 +25,7 @@ def new( Create a new project """ config_name = "config.yaml" - main_name = "main.txt" + main_name = "main.dkls" name = name.strip().lower().replace(" ", "-") for i in name: diff --git a/pyproject.toml b/pyproject.toml index 471bac5..039affa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ducklingscript" -version = "0.2.1" +version = "0.2.2" description = "A transcompiler for converting DucklingScript code into Rubber Ducky Language 1.0" authors = ["Dragon of Shuu "] readme = "README.md"