Skip to content

Commit

Permalink
feat: Show ssh signature algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-lobocki committed Oct 24, 2024
1 parent f8c8a28 commit 3e89c67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/columns_sshcerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ func getSshColumns() []tSshColumn {
contentEscapeMD: true,
},

tSshColumn{
isShown: func(tc tConfig) bool { return tc.showSignatureAlgorithm },
title: func() string { return "Algorithm" }, // Static title.
titleColor: color.Bold,

contentSource: func(x tSshCertificateWithRevocation, _ tConfig) string {
return x.SshCertificate.Signature.Format
},

contentColor: func(_ tSshCertificateWithRevocation) color.Attribute { return color.FgWhite }, // Static color.
contentAlignMD: ALIGN_LEFT,
contentEscapeMD: true,
},

tSshColumn{
isShown: func(_ tConfig) bool { return true }, // Always shown.
title: func() string { return "Start" }, // Static title.
Expand Down
1 change: 1 addition & 0 deletions cmd/command_sshcerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func init() {
sshCertsCmd.Flags().BoolVar(&config.showHostType, "type", true, "host type column shown")
sshCertsCmd.Flags().BoolVar(&config.showSerial, "serial", true, "serial column shown")
sshCertsCmd.Flags().BoolVar(&config.showKeyId, "keyid", false, "key id column shown")
sshCertsCmd.Flags().BoolVar(&config.showSignatureAlgorithm, "algorithm", false, "signature algorithm column shown")
}

/*
Expand Down

0 comments on commit 3e89c67

Please sign in to comment.