Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions ducklingscript/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions ducklingscript/cli/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ducklingscript/cli/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <loganmcederlof@gmail.com>"]
readme = "README.md"
Expand Down