authd icon indicating copy to clipboard operation
authd copied to clipboard

Fix `version` command trying to migrate

Open adombeck opened this issue 7 months ago • 0 comments

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.

adombeck avatar May 23 '25 17:05 adombeck