Mercurial > hg > Members > anatofuz > growsync
view cmd_version.go @ 14:1e21b0c29775
remove create page msg
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Dec 2020 11:12:04 +0900 |
parents | 359eff175bf1 |
children |
line wrap: on
line source
package growsync import ( "context" "fmt" "io" ) type versionCmd struct{} func (pc *versionCmd) name() string { return "version" } func (pc *versionCmd) description() string { return "display version" } func (pc *versionCmd) run(ctx context.Context, argv []string, config *growiConfig, stdWriter io.Writer, errorWriter io.Writer) error { _, err := fmt.Fprintf(stdWriter, "%s v%s\n", cmdName, version) return err }