diff --git a/getcrx.py b/getcrx.py index 60b89c4..35b945e 100644 --- a/getcrx.py +++ b/getcrx.py @@ -8,7 +8,7 @@ import time import traceback import zipfile -from voussoirkit import clipext +from voussoirkit import pipeable from voussoirkit import interactive FILENAME_BADCHARS = '\\/:*?<>|"' @@ -97,7 +97,7 @@ def getcrx_argparse(args): extension_ids = [] if len(args.extension_ids) == 1: - extension_ids.extend(clipext.resolve(args.extension_ids[0], split_lines=True)) + extension_ids.extend(pipeable.input(args.extension_ids[0])) elif args.extension_ids: extension_ids.extend(args.extension_ids) diff --git a/head.py b/head.py index cb747c7..d38306a 100644 --- a/head.py +++ b/head.py @@ -5,9 +5,9 @@ import sys import json import requests -from voussoirkit import clipext +from voussoirkit import pipeable -urls = clipext.resolve(sys.argv[1], split_lines=True) +urls = pipeable.input(sys.argv[1], skip_blank=True, strip=True) for url in urls: page = requests.head(url) headers = dict(page.headers) diff --git a/reversed.py b/reversed.py index 2f92c47..d6602bb 100644 --- a/reversed.py +++ b/reversed.py @@ -4,12 +4,11 @@ Print input lines in reverse order. import argparse import sys -from voussoirkit import clipext +from voussoirkit import pipeable def reverse_argparse(args): - lines = clipext.resolve(args.lines) - lines = lines.splitlines() - lines = reversed(lines) + lines = list(pipeable.input(args.lines)) + lines.reverse() print('\n'.join(lines)) def main(argv):