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

Show "publishing..." statuses before publishing

instead of after.
This commit is contained in:
Matt Baer 2019-06-20 22:35:43 -04:00
parent f46c5717a7
commit ccec921bd7

View File

@ -14,13 +14,13 @@ import (
)
func CmdPost(c *cli.Context) error {
_, err := api.DoPost(c, api.ReadStdIn(), c.String("font"), false, c.Bool("code"))
if config.IsTor(c) {
log.Info(c, "Publishing via hidden service...")
} else {
log.Info(c, "Publishing...")
}
_, err := api.DoPost(c, api.ReadStdIn(), c.String("font"), false, c.Bool("code"))
return err
}