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