sane-bt-search: convert to nix-shell and increase verbosity
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ps.natsort ps.requests ])"
|
||||||
"""
|
"""
|
||||||
usage: sane-bt-search <query_string>
|
usage: sane-bt-search <query_string>
|
||||||
|
|
||||||
@@ -67,5 +68,6 @@ q = " ".join(sys.argv[1:])
|
|||||||
|
|
||||||
client = Client()
|
client = Client()
|
||||||
res = client.query(q)
|
res = client.query(q)
|
||||||
|
print(f"found {len(res)} result(s)")
|
||||||
for r in res[:5]:
|
for r in res[:5]:
|
||||||
print(r)
|
print(r)
|
||||||
|
Reference in New Issue
Block a user