Compare commits
2 commits
021ba9fafc
...
db2fab6628
| Author | SHA1 | Date | |
|---|---|---|---|
| db2fab6628 | |||
| a40dff9f49 |
3 changed files with 6 additions and 3 deletions
|
|
@ -7,6 +7,8 @@ Wherever you download this repository, don't forget to add that directory to you
|
|||
|
||||
## Mirrors
|
||||
|
||||
https://git.voussoir.net/voussoir/cmd
|
||||
|
||||
https://github.com/voussoir/cmd
|
||||
|
||||
https://gitlab.com/voussoir/cmd
|
||||
|
|
|
|||
|
|
@ -5,13 +5,14 @@ import argparse
|
|||
import pyperclip
|
||||
import sys
|
||||
|
||||
from voussoirkit import pipeable
|
||||
|
||||
def clipboard_argparse(args):
|
||||
if args.output_file:
|
||||
open(args.output_file, 'w', encoding='utf-8').write(pyperclip.paste())
|
||||
else:
|
||||
text = pyperclip.paste()
|
||||
text = text.replace('\r', '')
|
||||
print(text)
|
||||
pipeable.stdout(text)
|
||||
|
||||
return 0
|
||||
|
||||
|
|
|
|||
2
repr.py
2
repr.py
|
|
@ -1,4 +1,4 @@
|
|||
from voussoirkit import pipeable
|
||||
|
||||
for line in pipeable.go():
|
||||
print(repr(line))
|
||||
pipeable.stdout(repr(line))
|
||||
|
|
|
|||
Loading…
Reference in a new issue