jaclang 0.5.4__py3-none-any.whl → 0.5.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jaclang might be problematic. Click here for more details.

jaclang/__init__.py CHANGED
@@ -5,7 +5,7 @@ import sys
5
5
 
6
6
  sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "vendor"))
7
7
 
8
- from jaclang.plugin.default import JacFeatureDefaults # noqa: E402
8
+ from jaclang.plugin.default import JacCmdDefaults, JacFeatureDefaults # noqa: E402
9
9
  from jaclang.plugin.feature import JacFeature, pm # noqa: E402
10
10
  from jaclang.vendor import lark # noqa: E402
11
11
  from jaclang.vendor import mypy # noqa: E402
@@ -20,4 +20,5 @@ __all__ = [
20
20
  "pluggy",
21
21
  ]
22
22
  pm.register(JacFeatureDefaults)
23
+ pm.register(JacCmdDefaults)
23
24
  pm.load_setuptools_entrypoints("jac")
jaclang/cli/cli.py CHANGED
@@ -6,15 +6,17 @@ import shutil
6
6
  from typing import Optional
7
7
 
8
8
  from jaclang import jac_import
9
- from jaclang.cli.cmdreg import CommandRegistry, CommandShell
9
+ from jaclang.cli.cmdreg import CommandShell, cmd_registry
10
10
  from jaclang.compiler.compile import jac_file_to_pass
11
11
  from jaclang.compiler.constant import Constants
12
12
  from jaclang.compiler.passes.main.schedules import py_code_gen_typed
13
13
  from jaclang.compiler.passes.tool.schedules import format_pass
14
+ from jaclang.plugin.feature import JacCmd as Cmd
14
15
  from jaclang.plugin.feature import JacFeature as Jac
15
16
  from jaclang.utils.lang_tools import AstTool
16
17
 
17
- cmd_registry = CommandRegistry()
18
+
19
+ Cmd.create_cmd()
18
20
 
19
21
 
20
22
  @cmd_registry.register
jaclang/cli/cmdreg.py CHANGED
@@ -110,6 +110,9 @@ class CommandRegistry:
110
110
  return all_commands
111
111
 
112
112
 
113
+ cmd_registry = CommandRegistry()
114
+
115
+
113
116
  class CommandShell(cmd.Cmd):
114
117
  """Command shell for the command line interface."""
115
118