Ver código fonte

Merge branch 'T672-accounts' of github.com:writeas/writeas-cli into T672-accounts

pull/44/head
Matt Baer 4 anos atrás
pai
commit
5b1ae2cd83
2 arquivos alterados com 5 adições e 9 exclusões
  1. +5
    -5
      cmd/wf/main.go
  2. +0
    -4
      config/options.go

+ 5
- 5
cmd/wf/main.go Ver arquivo

@@ -79,7 +79,7 @@ func main() {
{ {
Name: "delete", Name: "delete",
Usage: "Delete a post", Usage: "Delete a post",
Action: requireAuth(commands.CmdDelete, "delete"),
Action: requireAuth(commands.CmdDelete, "delete a post"),
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "tor, t", Name: "tor, t",
@@ -99,7 +99,7 @@ func main() {
{ {
Name: "update", Name: "update",
Usage: "Update (overwrite) a post", Usage: "Update (overwrite) a post",
Action: requireAuth(commands.CmdUpdate, "update"),
Action: requireAuth(commands.CmdUpdate, "update a post"),
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "tor, t", Name: "tor, t",
@@ -148,7 +148,7 @@ func main() {
Name: "posts", Name: "posts",
Usage: "List all of your posts", Usage: "List all of your posts",
Description: "This will list only local posts.", Description: "This will list only local posts.",
Action: requireAuth(commands.CmdListPosts, "posts"),
Action: requireAuth(commands.CmdListPosts, "view posts"),
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "id", Name: "id",
@@ -170,7 +170,7 @@ func main() {
}, { }, {
Name: "blogs", Name: "blogs",
Usage: "List blogs", Usage: "List blogs",
Action: requireAuth(commands.CmdCollections, "blogs"),
Action: requireAuth(commands.CmdCollections, "view blogs"),
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "tor, t", Name: "tor, t",
@@ -189,7 +189,7 @@ func main() {
}, { }, {
Name: "claim", Name: "claim",
Usage: "Claim local unsynced posts", Usage: "Claim local unsynced posts",
Action: requireAuth(commands.CmdClaim, "claim"),
Action: requireAuth(commands.CmdClaim, "claim unsynced posts"),
Description: "This will claim any unsynced posts local to this machine. To see which posts these are run: wf posts.", Description: "This will claim any unsynced posts local to this machine. To see which posts these are run: wf posts.",
Flags: []cli.Flag{ Flags: []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{


+ 0
- 4
config/options.go Ver arquivo

@@ -79,10 +79,6 @@ func Collection(c *cli.Context) string {
if coll := c.String("b"); coll != "" { if coll := c.String("b"); coll != "" {
return coll return coll
} }
u, _ := LoadUser(c)
if u != nil {
return u.User.Username
}
return "" return ""
} }




Carregando…
Cancelar
Salvar