authd
authd copied to clipboard
Fix `version` command trying to migrate
The PersistentPreRunE method did things which should not be done for subcommands like version. We don't need to parse the config file to print the authd version, and we definitely don't need to migrate the database.
Use PreRunE instead, which is not executed for subcommands.