Skip to content

Commit 6186e2a

Browse files
committed
Remove diff functions, to be added back in a smarter way later
1 parent c7b4d4d commit 6186e2a

File tree

8 files changed

+137
-347
lines changed

8 files changed

+137
-347
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ authors = [
1212
]
1313

1414
dependencies = [
15-
"openai>=1.30.1",
15+
"openai>=1.84.0",
1616
"rich>=13.7.1",
1717
"llm-utils>=0.2.8",
1818
]

src/cwhy/__main__.py

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ def py_wrapper(args: argparse.Namespace) -> str:
1818
return (
1919
textwrap.dedent(
2020
f"""
21-
#! {sys.executable}
22-
import os
23-
import sys
24-
if "CWHY_DISABLE" in os.environ:
25-
import subprocess
26-
sys.exit(subprocess.run([*{args.command}, *sys.argv[1:]]).returncode)
27-
else:
28-
import argparse
29-
from cwhy import cwhy
30-
args = argparse.Namespace(**{vars(args)})
31-
args.command.extend(sys.argv[1:])
32-
cwhy.main(args)
33-
"""
21+
#! {sys.executable}
22+
import os
23+
import sys
24+
if "CWHY_DISABLE" in os.environ:
25+
import subprocess
26+
sys.exit(subprocess.run([*{args.command}, *sys.argv[1:]]).returncode)
27+
else:
28+
import argparse
29+
from cwhy import cwhy
30+
args = argparse.Namespace(**{vars(args)})
31+
args.command.extend(sys.argv[1:])
32+
cwhy.main(args)
33+
"""
3434
).strip()
3535
+ "\n"
3636
)
@@ -86,7 +86,7 @@ def main() -> None:
8686
[blue][link=https://github.com/plasma-umass/cwhy]https://github.com/plasma-umass/cwhy[/link][/blue]
8787
8888
usage:
89-
[b]cwhy [SUBCOMMAND] \[OPTIONS...] --- COMMAND...[/b]
89+
[b]cwhy \[OPTIONS...] --- COMMAND...[/b]
9090
usage (GNU Make):
9191
[b]CXX=`cwhy --wrapper \[OPTIONS...] --- c++` make[/b]
9292
usage (CMake):
@@ -109,20 +109,6 @@ def main() -> None:
109109
help="print the version of CWhy and exit",
110110
)
111111

112-
parser.add_argument(
113-
"subcommand",
114-
nargs="?",
115-
default="explain",
116-
choices=["explain", "diff-converse"],
117-
metavar="subcommand",
118-
help=textwrap.dedent(
119-
r"""
120-
explain: explain the diagnostic (default)
121-
diff-converse: \[experimental] interactively fix errors with CWhy
122-
"""
123-
).strip(),
124-
)
125-
126112
parser.add_argument(
127113
"--llm",
128114
type=str,

src/cwhy/conversation/__init__.py

Lines changed: 0 additions & 89 deletions
This file was deleted.

src/cwhy/conversation/diff_functions.py

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)