Skip to content

Commit

Permalink
rename shellgpt to shgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed May 31, 2024
1 parent df6dfc5 commit 37d1a1e
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 23 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
run:
@ python -m shellgpt.main

init:
pip install -r requirements.txt

freeze:
pip freeze > requirements.txt
@ python -m shgpt.main

build:
hatch build

.PHONY: init freeze test build
.PHONY: run build
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ Repository = "https://github.com/jiacai2050/shellgpt"
Issues = "https://github.com/jiacai2050/shellgpt/issues"

[project.scripts]
sg = "shellgpt.main:main"
sg = "shgpt.main:main"

[tool.hatch.version]
path = "shellgpt/version.py"
path = "shgpt/version.py"

[tool.hatch.build.targets.sdist]
include = [
"shellgpt",
"shgpt",
"pyproject.toml",
"README.md",
"Makefile",
]

[tool.hatch.build.targets.wheel]
include = [
"shellgpt",
"shgpt",
]


Expand Down
6 changes: 3 additions & 3 deletions shellgpt/api/ollama.py → shgpt/api/ollama.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from shellgpt.utils.http import TimeoutSession
import json, os
from shellgpt.utils.common import *
from shellgpt.utils.conf import *
from ..utils.http import TimeoutSession
from ..utils.common import *
from ..utils.conf import *

HIST_SEP = '=========='
CONTENT = {
Expand Down
10 changes: 5 additions & 5 deletions shellgpt/main.py → shgpt/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import argparse
from os import environ, makedirs
from smartinput import sinput
from shellgpt.api.ollama import Ollama
from shellgpt.version import __version__
from shellgpt.utils.conf import *
from shellgpt.utils.common import set_verbose
from shellgpt.tui.app import ShellGPTApp
from .api.ollama import Ollama
from .version import __version__
from .utils.conf import *
from .utils.common import set_verbose
from .tui.app import ShellGPTApp


class ShellGPT(object):
Expand Down
6 changes: 3 additions & 3 deletions shellgpt/tui/app.py → shgpt/tui/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Static, TextArea, Button
from shellgpt.utils.common import *
import pyperclip
from typing import Optional
from shellgpt.utils.common import debug_print
import pyperclip
import subprocess
from ..utils.common import *
from ..utils.common import debug_print

class PromptInput(Static):
def compose(self) -> ComposeResult:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 37d1a1e

Please sign in to comment.