mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-06 03:22:23 -08:00
strinc typing
This commit is contained in:
parent
d93a1d1fb0
commit
46941115f1
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,8 @@ def save_repo_to_text(path='.', output_dir=None, to_stdout=False) -> str:
|
||||||
try:
|
try:
|
||||||
import importlib.util
|
import importlib.util
|
||||||
if importlib.util.find_spec("pyperclip"):
|
if importlib.util.find_spec("pyperclip"):
|
||||||
import pyperclip
|
# Import pyperclip only if it's available
|
||||||
|
import pyperclip # type: ignore
|
||||||
pyperclip.copy(output_text)
|
pyperclip.copy(output_text)
|
||||||
logging.debug('Repository structure and contents copied to clipboard')
|
logging.debug('Repository structure and contents copied to clipboard')
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue