File: cmd_version.go

package info (click to toggle)
golang-github-johanneskaufmann-html-to-markdown 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: makefile: 3
file content (11 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
package cmd

import "fmt"

func (cli CLI) printVersion() {
	fmt.Fprintf(cli.Stdout, "%s\n\n", projectBinary)

	fmt.Fprintf(cli.Stdout, "GitVersion:  %s\n", cli.Release.Version)
	fmt.Fprintf(cli.Stdout, "GitCommit:   %s\n", cli.Release.Commit)
	fmt.Fprintf(cli.Stdout, "BuildDate:   %s\n", cli.Release.Date)
}