kopipasta 0.7.0__py3-none-any.whl → 0.8.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.

Potentially problematic release.


This version of kopipasta might be problematic. Click here for more details.

kopipasta/main.py CHANGED
@@ -374,11 +374,14 @@ def select_file_patches(file_path):
374
374
  break
375
375
  elif choice == 'n':
376
376
  placeholder = get_placeholder_comment(language)
377
- chunks.append(placeholder)
377
+ if chunks and chunks[-1] != placeholder:
378
+ chunks.append(placeholder)
378
379
  total_char_count += len(placeholder)
379
380
  break
380
381
  elif choice == 'q':
381
382
  print("Skipping the rest of the file.")
383
+ if chunks and chunks[-1] != placeholder:
384
+ chunks.append(placeholder)
382
385
  return chunks, total_char_count
383
386
  else:
384
387
  print("Invalid choice. Please enter 'y', 'n', or 'q'.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kopipasta
3
- Version: 0.7.0
3
+ Version: 0.8.0
4
4
  Summary: A CLI tool to generate prompts with project structure and file contents
5
5
  Home-page: https://github.com/mkorpela/kopipasta
6
6
  Author: Mikko Korpela
@@ -0,0 +1,8 @@
1
+ kopipasta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ kopipasta/main.py,sha256=ldvknpIw_PMWdwxTOui_3sd2OR0XEvN6gjwJtejr8VY,28038
3
+ kopipasta-0.8.0.dist-info/LICENSE,sha256=xw4C9TAU7LFu4r_MwSbky90uzkzNtRwAo3c51IWR8lk,1091
4
+ kopipasta-0.8.0.dist-info/METADATA,sha256=uDtR8cTLlP6SY-i305eG0iTCAUZMnVJLSrlYXoViSy8,5431
5
+ kopipasta-0.8.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
+ kopipasta-0.8.0.dist-info/entry_points.txt,sha256=but54qDNz1-F8fVvGstq_QID5tHjczP7bO7rWLFkc6Y,50
7
+ kopipasta-0.8.0.dist-info/top_level.txt,sha256=iXohixMuCdw8UjGDUp0ouICLYBDrx207sgZIJ9lxn0o,10
8
+ kopipasta-0.8.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- kopipasta/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- kopipasta/main.py,sha256=GuelSjwHqu5IPMMp8vsYPK7r0WxMzFeCg20f80xGSD4,27873
3
- kopipasta-0.7.0.dist-info/LICENSE,sha256=xw4C9TAU7LFu4r_MwSbky90uzkzNtRwAo3c51IWR8lk,1091
4
- kopipasta-0.7.0.dist-info/METADATA,sha256=U1MQF6l5bVukAIhFJRNz9R50CkJOVv43Hg2s_sbZNx8,5431
5
- kopipasta-0.7.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
6
- kopipasta-0.7.0.dist-info/entry_points.txt,sha256=but54qDNz1-F8fVvGstq_QID5tHjczP7bO7rWLFkc6Y,50
7
- kopipasta-0.7.0.dist-info/top_level.txt,sha256=iXohixMuCdw8UjGDUp0ouICLYBDrx207sgZIJ9lxn0o,10
8
- kopipasta-0.7.0.dist-info/RECORD,,