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:
parent
f1947e48e2
commit
d257ff0070
@ -178,6 +178,15 @@ func main() {
|
|||||||
Usage: "List blogs",
|
Usage: "List blogs",
|
||||||
Action: commands.CmdCollections,
|
Action: commands.CmdCollections,
|
||||||
Flags: []cli.Flag{
|
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{
|
cli.BoolFlag{
|
||||||
Name: "url",
|
Name: "url",
|
||||||
Usage: "Show list with URLs",
|
Usage: "Show list with URLs",
|
||||||
@ -189,6 +198,15 @@ func main() {
|
|||||||
Action: commands.CmdClaim,
|
Action: commands.CmdClaim,
|
||||||
Description: "This will claim any unsynced posts local to this machine. To see which posts these are run: writeas posts.",
|
Description: "This will claim any unsynced posts local to this machine. To see which posts these are run: writeas posts.",
|
||||||
Flags: []cli.Flag{
|
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{
|
cli.BoolFlag{
|
||||||
Name: "verbose, v",
|
Name: "verbose, v",
|
||||||
Usage: "Make the operation more talkative",
|
Usage: "Make the operation more talkative",
|
||||||
|
Loading…
Reference in New Issue
Block a user