llmscribe 1.0.0__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.
- llmscribe/__init__.py +7 -0
- llmscribe/cli/__init__.py +1 -0
- llmscribe/cli/main.py +121 -0
- llmscribe/core/__init__.py +17 -0
- llmscribe/core/file_reader.py +64 -0
- llmscribe/core/tree_builder.py +91 -0
- llmscribe/core/writer.py +50 -0
- llmscribe/cui/__init__.py +1 -0
- llmscribe/cui/main.py +98 -0
- llmscribe/gui/__init__.py +1 -0
- llmscribe/gui/__main__.py +9 -0
- llmscribe/gui/app.py +613 -0
- llmscribe/py.typed +0 -0
- llmscribe-1.0.0.dist-info/METADATA +446 -0
- llmscribe-1.0.0.dist-info/RECORD +19 -0
- llmscribe-1.0.0.dist-info/WHEEL +5 -0
- llmscribe-1.0.0.dist-info/entry_points.txt +4 -0
- llmscribe-1.0.0.dist-info/licenses/LICENSE +201 -0
- llmscribe-1.0.0.dist-info/top_level.txt +1 -0
llmscribe/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Command-line interface for LLMScribe."""
|
llmscribe/cli/main.py
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"""Command-line entry point for LLMScribe."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from llmscribe.core.writer import run
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def parse_args() -> argparse.Namespace:
|
|
13
|
+
"""Parse command-line arguments."""
|
|
14
|
+
parser = argparse.ArgumentParser(
|
|
15
|
+
prog="llmscribe",
|
|
16
|
+
description="LLMScribe — export a project folder to a single text file.",
|
|
17
|
+
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
parser.add_argument(
|
|
21
|
+
"--path",
|
|
22
|
+
help="Project folder path.",
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
parser.add_argument(
|
|
26
|
+
"--output",
|
|
27
|
+
help="Output file path.",
|
|
28
|
+
default="project_overview.txt",
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
parser.add_argument(
|
|
32
|
+
"--gui",
|
|
33
|
+
action="store_true",
|
|
34
|
+
help="Open a GUI folder picker instead of typing a path.",
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
parser.add_argument(
|
|
38
|
+
"--tree-only",
|
|
39
|
+
action="store_true",
|
|
40
|
+
help="Export only the directory tree without file contents.",
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
parser.add_argument(
|
|
44
|
+
"--version",
|
|
45
|
+
action="version",
|
|
46
|
+
version=_version_string(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return parser.parse_args()
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _version_string() -> str:
|
|
53
|
+
from llmscribe import __version__
|
|
54
|
+
|
|
55
|
+
return f"llmscribe {__version__}"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def resolve_project_path(args: argparse.Namespace) -> Path | None:
|
|
59
|
+
"""Resolve the project path from CLI flags, GUI picker, or interactive prompt."""
|
|
60
|
+
if args.gui:
|
|
61
|
+
return _pick_folder_gui()
|
|
62
|
+
|
|
63
|
+
if args.path:
|
|
64
|
+
return Path(args.path).expanduser()
|
|
65
|
+
|
|
66
|
+
user_input = input(
|
|
67
|
+
"Enter project folder path (or press Enter to open folder picker): "
|
|
68
|
+
).strip()
|
|
69
|
+
|
|
70
|
+
if user_input:
|
|
71
|
+
return Path(user_input).expanduser()
|
|
72
|
+
|
|
73
|
+
return _pick_folder_gui()
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def _pick_folder_gui() -> Path | None:
|
|
77
|
+
"""Load the optional GUI only when the user requests it."""
|
|
78
|
+
try:
|
|
79
|
+
from llmscribe.gui.app import pick_folder_gui
|
|
80
|
+
except ImportError as exc:
|
|
81
|
+
raise RuntimeError(
|
|
82
|
+
"GUI mode requires Tkinter. Install your OS Python Tk package "
|
|
83
|
+
"(for example, python3-tk on Debian/Ubuntu)."
|
|
84
|
+
) from exc
|
|
85
|
+
return pick_folder_gui()
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def main() -> None:
|
|
89
|
+
"""Run the LLMScribe CLI."""
|
|
90
|
+
args = parse_args()
|
|
91
|
+
try:
|
|
92
|
+
project_path = resolve_project_path(args)
|
|
93
|
+
except RuntimeError as exc:
|
|
94
|
+
print(f"Error: {exc}", file=sys.stderr)
|
|
95
|
+
sys.exit(1)
|
|
96
|
+
|
|
97
|
+
if project_path is None:
|
|
98
|
+
print("No folder selected. Exiting.")
|
|
99
|
+
sys.exit(0)
|
|
100
|
+
|
|
101
|
+
if not project_path.exists():
|
|
102
|
+
print(f"Error: path does not exist: {project_path}")
|
|
103
|
+
sys.exit(1)
|
|
104
|
+
|
|
105
|
+
if not project_path.is_dir():
|
|
106
|
+
print(f"Error: path is not a directory: {project_path}")
|
|
107
|
+
sys.exit(1)
|
|
108
|
+
|
|
109
|
+
try:
|
|
110
|
+
run(
|
|
111
|
+
project_path.resolve(),
|
|
112
|
+
Path(args.output).expanduser(),
|
|
113
|
+
tree_only=args.tree_only,
|
|
114
|
+
)
|
|
115
|
+
except OSError as exc:
|
|
116
|
+
print(f"Error: could not read or write files: {exc}", file=sys.stderr)
|
|
117
|
+
sys.exit(1)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
if __name__ == "__main__":
|
|
121
|
+
main()
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Core LLMScribe functionality."""
|
|
2
|
+
|
|
3
|
+
from .file_reader import TEXT_FILE_EXTENSIONS, extract_contents
|
|
4
|
+
from .tree_builder import DEFAULT_IGNORE, IgnoreMatcher, generate_tree, load_gitignore, should_ignore
|
|
5
|
+
from .writer import build_project_summary, run
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"DEFAULT_IGNORE",
|
|
9
|
+
"IgnoreMatcher",
|
|
10
|
+
"TEXT_FILE_EXTENSIONS",
|
|
11
|
+
"build_project_summary",
|
|
12
|
+
"extract_contents",
|
|
13
|
+
"generate_tree",
|
|
14
|
+
"load_gitignore",
|
|
15
|
+
"run",
|
|
16
|
+
"should_ignore",
|
|
17
|
+
]
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Read supported text files for project summaries."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Iterable
|
|
7
|
+
|
|
8
|
+
from .tree_builder import IgnoreMatcher
|
|
9
|
+
|
|
10
|
+
TEXT_FILE_EXTENSIONS = {
|
|
11
|
+
# Programming Languages
|
|
12
|
+
".py", ".js", ".ts", ".jsx", ".tsx", ".java", ".c", ".cpp", ".cc", ".cxx", ".h", ".hpp",
|
|
13
|
+
".go", ".rb", ".rs", ".php", ".scala", ".kt", ".swift", ".dart", ".lua", ".pl", ".pm",
|
|
14
|
+
".r", ".m", ".hs", ".ml", ".fs", ".fsx", ".vb", ".cs", ".clj", ".cljs", ".elm", ".ex",
|
|
15
|
+
".exs", ".nim", ".zig", ".cr", ".d", ".nimble", ".v", ".pony", ".tcl", ".tk",
|
|
16
|
+
# Web Technologies
|
|
17
|
+
".html", ".htm", ".css", ".scss", ".sass", ".less", ".vue", ".svelte", ".pug", ".ejs",
|
|
18
|
+
".hbs", ".handlebars", ".mustache", ".twig", ".jsp", ".asp", ".aspx", ".erb", ".haml",
|
|
19
|
+
# Configuration & Data
|
|
20
|
+
".json", ".xml", ".yaml", ".yml", ".toml", ".ini", ".cfg", ".conf", ".properties",
|
|
21
|
+
".env", ".dotenv", ".lock", ".sum", ".mod", ".gradle", ".pom",
|
|
22
|
+
".gitignore", ".gitattributes", ".editorconfig", ".prettierrc", ".eslintrc", ".babelrc",
|
|
23
|
+
# Scripts & Shell
|
|
24
|
+
".sh", ".bash", ".zsh", ".fish", ".ps1", ".bat", ".cmd", ".awk", ".sed",
|
|
25
|
+
# Documentation & plain text
|
|
26
|
+
".md", ".rst", ".adoc", ".tex", ".bib", ".txt",
|
|
27
|
+
# Data (text-based only)
|
|
28
|
+
".csv", ".tsv", ".sql",
|
|
29
|
+
# Logs
|
|
30
|
+
".log",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def is_text_file(path: Path) -> bool:
|
|
35
|
+
"""Return True when a path has a supported text-like extension."""
|
|
36
|
+
return path.suffix.lower() in TEXT_FILE_EXTENSIONS
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def extract_contents(root: Path, ignore_patterns: Iterable[str]) -> str:
|
|
40
|
+
"""Extract full contents from every supported text file below root.
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
root: Project root directory.
|
|
44
|
+
ignore_patterns: Patterns passed to should_ignore.
|
|
45
|
+
"""
|
|
46
|
+
output: list[str] = []
|
|
47
|
+
matcher = IgnoreMatcher(root, ignore_patterns)
|
|
48
|
+
|
|
49
|
+
for path in sorted(root.rglob("*")):
|
|
50
|
+
if path.is_dir() or matcher.is_ignored(path) or not is_text_file(path):
|
|
51
|
+
continue
|
|
52
|
+
|
|
53
|
+
rel = path.relative_to(root)
|
|
54
|
+
output.append(f"\n--- {rel} ---\n")
|
|
55
|
+
|
|
56
|
+
try:
|
|
57
|
+
content = path.read_text(encoding="utf-8", errors="ignore")
|
|
58
|
+
except OSError as exc:
|
|
59
|
+
output.append(f"[Error reading file: {exc}]\n")
|
|
60
|
+
continue
|
|
61
|
+
|
|
62
|
+
output.append(content)
|
|
63
|
+
|
|
64
|
+
return "".join(output)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Build directory trees and apply Git-style ignore rules."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import fnmatch
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Iterable
|
|
8
|
+
|
|
9
|
+
DEFAULT_IGNORE = {
|
|
10
|
+
".git", ".svn", ".hg", "node_modules", "vendor", "packages", "venv",
|
|
11
|
+
"__pycache__", ".eggs", "*.egg-info", "dist", "build", "target", "out",
|
|
12
|
+
"bin", "obj", ".idea", ".vscode", ".vs", ".DS_Store", "Thumbs.db",
|
|
13
|
+
"desktop.ini", "*.log", "logs", "tmp", "temp", ".tmp", ".cache",
|
|
14
|
+
".coverage", "coverage", ".nyc_output", ".env", ".env.*", "secrets",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def load_gitignore(root: Path) -> list[str]:
|
|
19
|
+
"""Load ordered, non-comment patterns from ``root/.gitignore``."""
|
|
20
|
+
gitignore = root / ".gitignore"
|
|
21
|
+
if not gitignore.exists():
|
|
22
|
+
return []
|
|
23
|
+
try:
|
|
24
|
+
return [line.strip() for line in gitignore.read_text(encoding="utf-8").splitlines()
|
|
25
|
+
if line.strip() and not line.lstrip().startswith("#")]
|
|
26
|
+
except OSError:
|
|
27
|
+
return []
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class IgnoreMatcher:
|
|
31
|
+
"""Dependency-free matcher for common Git ignore syntax."""
|
|
32
|
+
|
|
33
|
+
def __init__(self, root: Path, patterns: Iterable[str]):
|
|
34
|
+
self.root = root.resolve()
|
|
35
|
+
self.patterns = [p for p in patterns if p and not p.startswith("#")]
|
|
36
|
+
|
|
37
|
+
def is_ignored(self, path: Path) -> bool:
|
|
38
|
+
try:
|
|
39
|
+
relative = path.resolve().relative_to(self.root).as_posix()
|
|
40
|
+
except ValueError:
|
|
41
|
+
relative = path.as_posix().lstrip("/")
|
|
42
|
+
ignored = False
|
|
43
|
+
for raw_pattern in self.patterns:
|
|
44
|
+
pattern = raw_pattern.strip()
|
|
45
|
+
negated = pattern.startswith("!") and not pattern.startswith("\\!")
|
|
46
|
+
if negated:
|
|
47
|
+
pattern = pattern[1:]
|
|
48
|
+
pattern = pattern.replace("\\ ", " ").replace("\\#", "#")
|
|
49
|
+
pattern = pattern.rstrip("/")
|
|
50
|
+
anchored = pattern.startswith("/")
|
|
51
|
+
pattern = pattern.lstrip("/")
|
|
52
|
+
if self._matches(relative, pattern, anchored):
|
|
53
|
+
ignored = not negated
|
|
54
|
+
return ignored
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def _matches(relative: str, pattern: str, anchored: bool) -> bool:
|
|
58
|
+
if not pattern:
|
|
59
|
+
return False
|
|
60
|
+
candidates = [relative] if anchored or "/" in pattern else [relative, *relative.split("/")]
|
|
61
|
+
return any(fnmatch.fnmatchcase(candidate, pattern) for candidate in candidates)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def should_ignore(path: Path, ignore_patterns: Iterable[str], root: Path | None = None) -> bool:
|
|
65
|
+
"""Return whether ``path`` matches the supplied ignore rules."""
|
|
66
|
+
base = root or path.parent
|
|
67
|
+
return IgnoreMatcher(base, ignore_patterns).is_ignored(path)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def generate_tree(root: Path, ignore_patterns: Iterable[str]) -> str:
|
|
71
|
+
"""Generate a visual tree while skipping ignored or unreadable paths."""
|
|
72
|
+
root = root.resolve()
|
|
73
|
+
matcher = IgnoreMatcher(root, ignore_patterns)
|
|
74
|
+
lines = [f"{root.name}/"]
|
|
75
|
+
|
|
76
|
+
def walk(directory: Path, prefix: str = "") -> None:
|
|
77
|
+
try:
|
|
78
|
+
items = sorted(directory.iterdir(), key=lambda item: (item.is_file(), item.name.lower()))
|
|
79
|
+
except OSError as exc:
|
|
80
|
+
lines.append(f"{prefix}└── [unreadable: {exc}]")
|
|
81
|
+
return
|
|
82
|
+
visible_items = [item for item in items if not matcher.is_ignored(item)]
|
|
83
|
+
for index, item in enumerate(visible_items):
|
|
84
|
+
connector = "└── " if index == len(visible_items) - 1 else "├── "
|
|
85
|
+
lines.append(prefix + connector + item.name)
|
|
86
|
+
if item.is_dir():
|
|
87
|
+
extension = " " if index == len(visible_items) - 1 else "│ "
|
|
88
|
+
walk(item, prefix + extension)
|
|
89
|
+
|
|
90
|
+
walk(root)
|
|
91
|
+
return "\n".join(lines)
|
llmscribe/core/writer.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Write LLMScribe project summaries."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
from .file_reader import extract_contents
|
|
8
|
+
from .tree_builder import DEFAULT_IGNORE, generate_tree, load_gitignore
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def build_project_summary(project_path: Path, tree_only: bool = False) -> str:
|
|
12
|
+
"""Build the full project summary text for a project path.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
project_path: Resolved path to the project root.
|
|
16
|
+
tree_only: Export only the directory tree, skipping file contents.
|
|
17
|
+
"""
|
|
18
|
+
ignore_patterns = [*DEFAULT_IGNORE, *load_gitignore(project_path)]
|
|
19
|
+
|
|
20
|
+
tree = generate_tree(project_path, ignore_patterns)
|
|
21
|
+
|
|
22
|
+
if tree_only:
|
|
23
|
+
return f"Selected Files Directory Structure:\n\n{tree}"
|
|
24
|
+
|
|
25
|
+
contents = extract_contents(project_path, ignore_patterns)
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
f"Selected Files Directory Structure:\n\n"
|
|
29
|
+
f"{tree}\n\n"
|
|
30
|
+
f"File Contents:\n{contents}"
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def run(project_path: Path, output_file: Path, tree_only: bool = False) -> None:
|
|
35
|
+
"""Generate and write a project summary file.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
project_path: Resolved path to the project root.
|
|
39
|
+
output_file: Destination file for the summary.
|
|
40
|
+
tree_only: Export only the directory tree, skipping file contents.
|
|
41
|
+
"""
|
|
42
|
+
print(f"\nScanning {project_path.name}...\n")
|
|
43
|
+
|
|
44
|
+
summary = build_project_summary(project_path, tree_only=tree_only)
|
|
45
|
+
|
|
46
|
+
output_file.parent.mkdir(parents=True, exist_ok=True)
|
|
47
|
+
output_file.write_text(summary, encoding="utf-8")
|
|
48
|
+
|
|
49
|
+
line_count = summary.count("\n")
|
|
50
|
+
print(f"Done. {line_count:,} lines written to: {output_file}\n")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Terminal menu interface for LLMScribe."""
|
llmscribe/cui/main.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""Command text user interface for LLMScribe."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from llmscribe.core.writer import run
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def parse_args() -> argparse.Namespace:
|
|
12
|
+
"""Parse command text interface arguments."""
|
|
13
|
+
parser = argparse.ArgumentParser(prog="llmscribe-cui", description="LLMScribe command text interface")
|
|
14
|
+
parser.add_argument("--path", help="Project folder path")
|
|
15
|
+
parser.add_argument("--output", help="Output file", default="project_overview.txt")
|
|
16
|
+
parser.add_argument("--gui", action="store_true", help="Use GUI folder picker")
|
|
17
|
+
parser.add_argument("--tree-only", action="store_true", help="Export only the directory tree.")
|
|
18
|
+
parser.add_argument("--version", action="version", version=_version_string())
|
|
19
|
+
return parser.parse_args()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _version_string() -> str:
|
|
23
|
+
from llmscribe import __version__
|
|
24
|
+
|
|
25
|
+
return f"llmscribe-cui {__version__}"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def choose_project_path(args: argparse.Namespace) -> Path | None:
|
|
29
|
+
"""Choose a project path from flags, GUI mode, or the text menu."""
|
|
30
|
+
if args.gui:
|
|
31
|
+
return _pick_folder_gui()
|
|
32
|
+
|
|
33
|
+
if args.path:
|
|
34
|
+
return Path(args.path).expanduser()
|
|
35
|
+
|
|
36
|
+
return prompt_for_project_path()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def prompt_for_project_path() -> Path | None:
|
|
40
|
+
"""Prompt users in a command text window for how they want to select a project."""
|
|
41
|
+
while True:
|
|
42
|
+
print("\nLLMScribe CUI")
|
|
43
|
+
print("1) Enter project folder path")
|
|
44
|
+
print("2) Open GUI folder picker")
|
|
45
|
+
print("3) Quit")
|
|
46
|
+
|
|
47
|
+
choice = input("Choose an option [1-3]: ").strip()
|
|
48
|
+
|
|
49
|
+
if choice == "1":
|
|
50
|
+
user_input = input("Project folder path: ").strip()
|
|
51
|
+
return Path(user_input).expanduser() if user_input else None
|
|
52
|
+
|
|
53
|
+
if choice == "2":
|
|
54
|
+
return _pick_folder_gui()
|
|
55
|
+
|
|
56
|
+
if choice == "3":
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
print("Invalid option. Please enter 1, 2, or 3.")
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _pick_folder_gui() -> Path | None:
|
|
63
|
+
"""Load the optional GUI only when the user requests it."""
|
|
64
|
+
try:
|
|
65
|
+
from llmscribe.gui.app import pick_folder_gui
|
|
66
|
+
except ImportError as exc:
|
|
67
|
+
raise RuntimeError(
|
|
68
|
+
"GUI mode requires Tkinter. Install your OS Python Tk package "
|
|
69
|
+
"(for example, python3-tk on Debian/Ubuntu)."
|
|
70
|
+
) from exc
|
|
71
|
+
return pick_folder_gui()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def main() -> None:
|
|
75
|
+
"""Run the LLMScribe command text user interface."""
|
|
76
|
+
args = parse_args()
|
|
77
|
+
try:
|
|
78
|
+
project_path = choose_project_path(args)
|
|
79
|
+
except RuntimeError as exc:
|
|
80
|
+
print(f"Error: {exc}")
|
|
81
|
+
return
|
|
82
|
+
|
|
83
|
+
if project_path is None:
|
|
84
|
+
print("No folder selected.")
|
|
85
|
+
return
|
|
86
|
+
|
|
87
|
+
if not project_path.exists() or not project_path.is_dir():
|
|
88
|
+
print("Invalid project folder path.")
|
|
89
|
+
return
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
run(project_path.resolve(), Path(args.output).expanduser(), tree_only=args.tree_only)
|
|
93
|
+
except OSError as exc:
|
|
94
|
+
print(f"Error: could not read or write files: {exc}")
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
if __name__ == "__main__":
|
|
98
|
+
main()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""GUI helpers for LLMScribe."""
|