mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-02 21:02:03 +00:00
* feat: add oidc client create command * refactor: use own utility for creating random strings (more flexible than stdlib) * feat: validate client name to avoid config errors * refactor: limit to only alphanumeric characters and hyphens * refactor: remove the need of the logger in the create oidc client cmd
25 lines
524 B
Go
25 lines
524 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/steveiliop56/tinyauth/internal/config"
|
|
|
|
"github.com/traefik/paerser/cli"
|
|
)
|
|
|
|
func versionCmd() *cli.Command {
|
|
return &cli.Command{
|
|
Name: "version",
|
|
Description: "Print the version number of Tinyauth",
|
|
Configuration: nil,
|
|
Resources: nil,
|
|
Run: func(_ []string) error {
|
|
fmt.Printf("Version: %s\n", config.Version)
|
|
fmt.Printf("Commit Hash: %s\n", config.CommitHash)
|
|
fmt.Printf("Build Timestamp: %s\n", config.BuildTimestamp)
|
|
return nil
|
|
},
|
|
}
|
|
}
|