Skip to content

Commit e2895e9

Browse files
authored
Merge pull request #8 from DragonOfShuu/nightly
Small Fixes
2 parents 20b40fc + b7cd073 commit e2895e9

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

ducklingscript/cli/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
from .new import new
77
from .interpret import interpret
88

9-
all_commands = [compile, version, help, all, new]
9+
all_commands = [compile, version, help, all, new, interpret]
1010

11-
app.command()(compile)
12-
app.command()(version)
13-
app.command()(help)
14-
app.command()(all)
15-
app.command()(new)
16-
app.command()(interpret)
11+
for command in all_commands:
12+
app.command()(command)
1713

1814
__all__ = ["app"]

ducklingscript/cli/compile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def compile(
5757
Compile a file, and output it to the given location with the given name.
5858
"""
5959
options = Configuration.config().to_dict()
60-
options.update({"stack_limit": stack_limit})
61-
options.update({"include_comments": comments})
62-
options.update({"create_sourcemap": sourcemap})
60+
options["stack_limit"] = stack_limit
61+
options["include_comments"] = comments
62+
options["create_sourcemap"] = sourcemap
6363
compile_options = CompileOptions(**options)
6464

6565
compiled: Compiled | None = None

ducklingscript/cli/new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def new(
2525
Create a new project
2626
"""
2727
config_name = "config.yaml"
28-
main_name = "main.txt"
28+
main_name = "main.dkls"
2929

3030
name = name.strip().lower().replace(" ", "-")
3131
for i in name:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ducklingscript"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "A transcompiler for converting DucklingScript code into Rubber Ducky Language 1.0"
55
authors = ["Dragon of Shuu <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)