Skip to content

Commit

Permalink
cmd/remme: add version subcmd
Browse files Browse the repository at this point in the history
  • Loading branch information
while-loop committed Dec 9, 2017
1 parent 99b2815 commit a29f3e3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions remme/cmd/remme/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import (
"fmt"

"github.com/urfave/cli"
)

func init() {
addCmd(versionCmd)
}

var versionCmd = cli.Command{
Name: "version",
Action: func(c *cli.Context) error {
fmt.Fprintf(c.App.Writer, "%s version %s\n", c.App.Name, c.App.Version)
return nil
},
}

0 comments on commit a29f3e3

Please sign in to comment.