Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose already added localauthority commands in the commands list (fflag required) #5479

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
}
Loading