/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/commands/version.go
25 строк
488 B
Michael Mayer
CLI: Add RunWithTestContext function for command tests #3168
06 дек 2024, 11:08
06 дек 2024, 11:08
cd4e6f1
Код
Авторство
О чём код?
package commands import ( "fmt" "github.com/urfave/cli/v2" "github.com/photoprism/photoprism/internal/config" ) // VersionCommand configures the "photoprism version" command. var VersionCommand = &cli.Command{ Name: "version", Usage: "Shows version information", Action: versionAction, } // versionAction displays information about the current version. func versionAction(ctx *cli.Context) error { conf := config.NewConfig(ctx) fmt.Println(conf.Version()) return nil }