Skip to content

Commit

Permalink
Expose already added localauthority commands in the commands list (ff…
Browse files Browse the repository at this point in the history
…lag required) (#5479)

Signed-off-by: Agustín Martínez Fayó <amartinezfayo@gmail.com>
  • Loading branch information
amartinezfayo authored Sep 8, 2024
1 parent b21a7ff commit d202d4e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cmd/spire-server/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,32 @@ func addCommandsEnabledByFFlags(commands map[string]cli.CommandFactory) {
commands["localauthority x509 show"] = func() (cli.Command, error) {
return localauthority_x509.NewX509ShowCommand(), nil
}
commands["localauthority x509 prepare"] = func() (cli.Command, error) {
return localauthority_x509.NewX509PrepareCommand(), nil
}
commands["localauthority x509 activate"] = func() (cli.Command, error) {
return localauthority_x509.NewX509ActivateCommand(), nil
}
commands["localauthority x509 taint"] = func() (cli.Command, error) {
return localauthority_x509.NewX509TaintCommand(), nil
}
commands["localauthority x509 revoke"] = func() (cli.Command, error) {
return localauthority_x509.NewX509RevokeCommand(), nil
}
commands["localauthority jwt show"] = func() (cli.Command, error) {
return localauthority_jwt.NewJWTShowCommand(), nil
}
commands["localauthority jwt prepare"] = func() (cli.Command, error) {
return localauthority_jwt.NewJWTPrepareCommand(), nil
}
commands["localauthority jwt activate"] = func() (cli.Command, error) {
return localauthority_jwt.NewJWTActivateCommand(), nil
}
commands["localauthority jwt taint"] = func() (cli.Command, error) {
return localauthority_jwt.NewJWTTaintCommand(), nil
}
commands["localauthority jwt revoke"] = func() (cli.Command, error) {
return localauthority_jwt.NewJWTRevokeCommand(), nil
}
}
}

0 comments on commit d202d4e

Please sign in to comment.