Skip to content

Commit

Permalink
adjusted command order and descriptions [spent 15m10s]
Browse files Browse the repository at this point in the history
  • Loading branch information
advdv committed May 24, 2015
1 parent fa14539 commit bb01cb1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion command/lap.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *Lap) Description() string {
}

func (c *Lap) Usage() string {
return "Register time spent on last commit and reset the timer to 0s"
return "Register time spent on the last commit and reset the timer"
}

func (c *Lap) Flags() []cli.Flag {
Expand Down
2 changes: 1 addition & 1 deletion command/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (c *Pull) Description() string {
}

func (c *Pull) Usage() string {
return "Pull time data from the remote repository"
return "Pull measurements from a remote repository"
}

func (c *Pull) Flags() []cli.Flag {
Expand Down
2 changes: 1 addition & 1 deletion command/punch.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Punch) Name() string {
}

func (c *Punch) Description() string {
return fmt.Sprintf("")
return fmt.Sprintf("Writes time to the metadata of the last commit, should be provided in the following format: 6h20m12s")
}

func (c *Punch) Usage() string {
Expand Down
2 changes: 1 addition & 1 deletion command/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c *Push) Description() string {
}

func (c *Push) Usage() string {
return "Push time data to the remote repository"
return "Push measurements to a remote repository"
}

func (c *Push) Flags() []cli.Flag {
Expand Down
4 changes: 2 additions & 2 deletions command/sum.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ func (c *Sum) Name() string {
}

func (c *Sum) Description() string {
return fmt.Sprintf("<description>")
return fmt.Sprintf("Reads time data for a list of commits provided to the command over STDIN. It expects one commit per line and the can be specified in any format that the underlying VCS accepts (refs, hashes, short hashes etc)")
}

func (c *Sum) Usage() string {
return "<usage>"
return "Collect time measurements from a series of commits"
}

func (c *Sum) Flags() []cli.Flag {
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ func main() {
command.NewStart(),
command.NewPause(),
command.NewStatus(),
command.NewLap(),
command.NewPunch(),
command.NewSum(),
command.NewStop(),
command.NewPush(),
command.NewPull(),
command.NewLap(),
command.NewPunch(),
command.NewSum(),
}

for _, c := range cmds {
Expand Down

0 comments on commit bb01cb1

Please sign in to comment.