From d257ff0070b24ce18dd2c50e89ac29c181b82841 Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Thu, 20 Jun 2019 13:46:59 -0700 Subject: [PATCH] add tor options to claim and blogs cmds both commands make network calls but do not accept flags for tor or the tor port --- cmd/writeas/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cmd/writeas/main.go b/cmd/writeas/main.go index 06d8af5..b9ec4ba 100644 --- a/cmd/writeas/main.go +++ b/cmd/writeas/main.go @@ -179,6 +179,15 @@ func main() { Action: commands.CmdCollections, Flags: []cli.Flag{ cli.BoolFlag{ + Name: "tor, t", + Usage: "Authenticate via Tor hidden service", + }, + cli.IntFlag{ + Name: "tor-port", + Usage: "Use a different port to connect to Tor", + Value: 9150, + }, + cli.BoolFlag{ Name: "url", Usage: "Show list with URLs", }, @@ -190,6 +199,15 @@ func main() { Description: "This will claim any unsynced posts local to this machine. To see which posts these are run: writeas posts.", Flags: []cli.Flag{ cli.BoolFlag{ + Name: "tor, t", + Usage: "Authenticate via Tor hidden service", + }, + cli.IntFlag{ + Name: "tor-port", + Usage: "Use a different port to connect to Tor", + Value: 9150, + }, + cli.BoolFlag{ Name: "verbose, v", Usage: "Make the operation more talkative", },