info.go 572 B

12345678910111213141516171819202122
  1. // Copyright 2018 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package cli // import "miniflux.app/cli"
  5. import (
  6. "fmt"
  7. "runtime"
  8. "miniflux.app/version"
  9. )
  10. func info() {
  11. fmt.Println("Version:", version.Version)
  12. fmt.Println("Commit:", version.Commit)
  13. fmt.Println("Build Date:", version.BuildDate)
  14. fmt.Println("Go Version:", runtime.Version())
  15. fmt.Println("Compiler:", runtime.Compiler)
  16. fmt.Println("Arch:", runtime.GOARCH)
  17. fmt.Println("OS:", runtime.GOOS)
  18. }