Skip to content

Commit

Permalink
hide signing key and show signing method
Browse files Browse the repository at this point in the history
Signed-off-by: bryans-go <[email protected]>
  • Loading branch information
divanshu-go committed Oct 1, 2024
1 parent a65318e commit a442f1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/cmd/gitprovider/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,22 @@ var gitProviderListCmd = &cobra.Command{
for _, gitProvider := range gitProviders {
for _, supportedProvider := range supportedProviders {
if gitProvider.Id == supportedProvider.Id {
signingMethod := ""
if gitProvider.SigningMethod != nil {
signingMethod = string(*gitProvider.SigningMethod)
}

gitProviderViewList = append(gitProviderViewList,
gitprovider_view.GitProviderView{
Id: gitProvider.Id,
Name: supportedProvider.Name,
Username: gitProvider.Username,
SigningMethod: string(*gitProvider.SigningMethod),
SigningMethod: signingMethod,
},
)
}
}
}

if format.FormatFlag != "" {
formattedData := format.NewFormatter(gitProviderViewList)
formattedData.Print()
Expand Down

0 comments on commit a442f1e

Please sign in to comment.