Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 003fe2a

Browse files
committed
feat: package refactor
1 parent ebbf89c commit 003fe2a

18 files changed

+9
-4
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

nlt/create_env.py renamed to natural_language_terminal/create_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
from rich.console import Console
66

7-
from nlt.core.system import SystemInfo
7+
from natural_language_terminal.core.system import SystemInfo
88

99
console = Console()
1010

nlt/git/autocommit.py renamed to natural_language_terminal/git/autocommit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from rich.panel import Panel
77
from rich.progress import Progress, SpinnerColumn, TextColumn
88

9-
from nlt.prompts import AUTOCOMMIT_ASSISTANT_PROMPT, AUTOCOMMIT_SYSTEM_PROMPT
9+
from natural_language_terminal.prompts import AUTOCOMMIT_ASSISTANT_PROMPT, AUTOCOMMIT_SYSTEM_PROMPT
1010

1111
console = Console()
1212
client = OpenAI()
File renamed without changes.

nlt/terminal/base.py renamed to natural_language_terminal/terminal/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ def format_response(content: str) -> Panel:
2323
return Panel(syntax, title=title, expand=False, border_style="green")
2424

2525
def make_prompt(cmd: str):
26+
print(cmd)
2627
return TERMINAL_COMMAND_ASSISTANT_PROMPT % cmd
2728

2829
def make_api_request(cmd: str, api_url: str, api_key: str) -> dict:
2930
prompt = make_prompt(cmd)
3031

32+
print(prompt)
33+
3134
headers = {
3235
"Content-Type": "application/json",
3336
"Authorization": f"Bearer {api_key}"
File renamed without changes.

nlt.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from natural_language_terminal import *

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
author='Balaji Rama',
2323
author_email='[email protected]',
2424
python_requires='>=3.6',
25+
py_modules=['nlt'], # Add this line
2526
install_requires=required,
2627
entry_points={
2728
"console_scripts": [
28-
"@nlt=nlt.cli.app:app",
29+
"@nlt=natural-language-terminal.cli.app:app",
2930
],
3031
},
3132
package_data={
32-
'pynlt': [
33+
'natural-language-terminal': [
3334
'shell_scripts/*.sh',
3435
'shell_scripts/*.bat'
3536
],

0 commit comments

Comments
 (0)