Open Treora opened 3 years ago
grep -oE "hyper://\w+"
depending on distro/version this is might not produce expected result,
grep -Eoe 'hyper://[0-9a-z]+'
is more universal solution
i can see the value for --only
, but would --quiet
option be usable in any way within context of the cli?
it will create new empty drive with unknown address and start seeding.. emptiness? like, its a cute metaphor, but not very actionable
i can see the value for
--only
, but would--quiet
option be usable in any way within context of the cli?
I suggested the two as alternative names for this option, not as two different options. Like with some other software, a single --quiet
need not be completely silent (I’ve seen programs that hush all output if multiple -q
s are passed).
multiple
-q
s are passed
it's probably not entirely universal either:
$ docker ps -a -q
0169d163346e
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0169d163346e analogic/poste.io "/init" 18 minutes ago Up 18 minutes (healthy) 110/tcp, 143/tcp, 465/tcp, 0.0.0.0:25->25/tcp, :::25->25/tcp, 587/tcp, 995/tcp, 0.0.0.0:993->993/tcp, :::993->993/tcp, 4190/tcp, 0.0.0.0:12080->80/tcp, :::12080->80/tcp, 0.0.0.0:12443->443/tcp, :::12443->443/tcp mailserver
$ docker ps -q
0169d163346e
$ docker ps -qq
0169d163346e
$ docker ps -q -q
0169d163346e
$ docker ps -qqq
0169d163346e
$ docker ps -q -q -q
0169d163346e
For use in shell scripts or to pipe hyp’s output into other commands, it would be practical to have an option to only get the address of the created drive/bee from
hyp create
. Example output, currently:The line containing the address appears to be output via stderr, not stdout, so currently some juggling like this is required to read only the
hyper://…
address:An
-o
/--only
option (like grep) or-q
/--quiet
option (like many tools) that makes hyp output only thehyper://…
url could be helpful.