Skip to content

Commit

Permalink
Show added title
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Sep 11, 2016
1 parent a5a11b9 commit e4727e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kaede-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"errors"
"fmt"
"os"
"strconv"

Expand Down Expand Up @@ -152,8 +153,12 @@ func addTid(c *cli.Context, client pb.SchedulerClient) error {
if err != nil {
return err
}
_, err = client.AddTid(context.Background(), &pb.AddTidInput{Tid: uint32(tid)})
return err
result, err := client.AddTid(context.Background(), &pb.AddTidInput{Tid: uint32(tid)})
if err != nil {
return err
}
fmt.Printf("Added %d: %s", result.Tid, result.Title)
return nil
}

func update(_ *cli.Context, client pb.SchedulerClient) error {
Expand Down

0 comments on commit e4727e9

Please sign in to comment.