gitex 0.2.16__tar.gz → 0.2.17__tar.gz

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.
Files changed (27) hide show
  1. {gitex-0.2.16 → gitex-0.2.17}/PKG-INFO +1 -1
  2. gitex-0.2.17/gitex/__init__.py +1 -0
  3. {gitex-0.2.16 → gitex-0.2.17}/gitex/main.py +8 -9
  4. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/PKG-INFO +1 -1
  5. gitex-0.2.16/gitex/__init__.py +0 -1
  6. {gitex-0.2.16 → gitex-0.2.17}/README.md +0 -0
  7. {gitex-0.2.16 → gitex-0.2.17}/gitex/dependency_mapper.py +0 -0
  8. {gitex-0.2.16 → gitex-0.2.17}/gitex/docstring_extractor.py +0 -0
  9. {gitex-0.2.16 → gitex-0.2.17}/gitex/models.py +0 -0
  10. {gitex-0.2.16 → gitex-0.2.17}/gitex/picker/__init__.py +0 -0
  11. {gitex-0.2.16 → gitex-0.2.17}/gitex/picker/base.py +0 -0
  12. {gitex-0.2.16 → gitex-0.2.17}/gitex/picker/questionary.py +0 -0
  13. {gitex-0.2.16 → gitex-0.2.17}/gitex/picker/textuals.py +0 -0
  14. {gitex-0.2.16 → gitex-0.2.17}/gitex/renderer.py +0 -0
  15. {gitex-0.2.16 → gitex-0.2.17}/gitex/utils.py +0 -0
  16. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/SOURCES.txt +0 -0
  17. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/dependency_links.txt +0 -0
  18. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/entry_points.txt +0 -0
  19. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/requires.txt +0 -0
  20. {gitex-0.2.16 → gitex-0.2.17}/gitex.egg-info/top_level.txt +0 -0
  21. {gitex-0.2.16 → gitex-0.2.17}/pyproject.toml +0 -0
  22. {gitex-0.2.16 → gitex-0.2.17}/setup.cfg +0 -0
  23. {gitex-0.2.16 → gitex-0.2.17}/tests/test_cli.py +0 -0
  24. {gitex-0.2.16 → gitex-0.2.17}/tests/test_fences.py +0 -0
  25. {gitex-0.2.16 → gitex-0.2.17}/tests/test_render.py +0 -0
  26. {gitex-0.2.16 → gitex-0.2.17}/tests/test_skip_binaries.py +0 -0
  27. {gitex-0.2.16 → gitex-0.2.17}/tests/test_textual.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitex
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: Terminal tool to prep codebases for LLMs
5
5
  Author-email: zozaai <info@zozaai.com>
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ __version__ = "0.2.17"
@@ -37,8 +37,8 @@ def _filter_nodes(nodes):
37
37
  help="Launch interactive picker to choose files")
38
38
  @click.option("--no-files", is_flag=True,
39
39
  help="Only render the directory tree without file contents.")
40
- @click.option("-c", "--copy", "copy_clipboard", is_flag=True,
41
- help="Copy the final output to clipboard (Linux: wl-copy/xclip/xsel).")
40
+ @click.option("-v", "--verbose", is_flag=True,
41
+ help="Print output to terminal in addition to copying.")
42
42
  @click.option("-d", "--base-dir", default=None,
43
43
  help="Strip this prefix from file paths when rendering file contents.")
44
44
  @click.option("-ds", "--extract-docstrings", "extract_symbol",
@@ -54,7 +54,7 @@ def _filter_nodes(nodes):
54
54
  @click.option("--force", is_flag=True, help="Force execution on non-git directories (caution: may be slow).")
55
55
 
56
56
 
57
- def cli(path, interactive, no_files, copy_clipboard, base_dir, extract_symbol, include_empty_classes, dependency_focus, ignore_gitignore, show_hidden, force):
57
+ def cli(path, interactive, no_files, verbose, base_dir, extract_symbol, include_empty_classes, dependency_focus, ignore_gitignore, show_hidden, force):
58
58
  """
59
59
  Renders a repository's file tree and optional file contents for LLM prompts.
60
60
 
@@ -140,14 +140,13 @@ def cli(path, interactive, no_files, copy_clipboard, base_dir, extract_symbol, i
140
140
 
141
141
  final_output = "".join(out_parts)
142
142
 
143
- if copy_clipboard:
144
- ok = copy_to_clipboard(final_output)
145
- if ok:
146
- click.secho("[Copied to clipboard]", err=True)
147
- else:
148
- click.secho("[Failed to copy to clipboard – install wl-clipboard or xclip or xsel]", fg="yellow", err=True)
143
+ ok = copy_to_clipboard(final_output)
144
+ if ok:
145
+ click.secho("[Copied to clipboard]", err=True)
146
+ if verbose:
149
147
  click.echo(final_output)
150
148
  else:
149
+ click.secho("[Failed to copy to clipboard – install wl-clipboard or xclip or xsel]", fg="yellow", err=True)
151
150
  click.echo(final_output)
152
151
 
153
152
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitex
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: Terminal tool to prep codebases for LLMs
5
5
  Author-email: zozaai <info@zozaai.com>
6
6
  License: MIT
@@ -1 +0,0 @@
1
- __version__ = "0.2.16"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes