1
0
mirror of https://github.com/writeas/writeas-cli synced 2025-07-26 23:08:16 +00:00

add tor options to claim and blogs cmds

both commands make network calls but do not accept flags for tor or the
tor port
This commit is contained in:
Rob Loranger 2019-06-20 13:46:59 -07:00
parent f1947e48e2
commit d257ff0070
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8

View File

@ -178,6 +178,15 @@ func main() {
Usage: "List blogs",
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",
@ -189,6 +198,15 @@ func main() {
Action: commands.CmdClaim,
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",