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

command to check current user in lakectl #8322

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
enhanced tests
  • Loading branch information
ItamarYuran committed Oct 30, 2024
commit 5172c289e6dd218eba4f70b7b5d308778c3471d6
5 changes: 3 additions & 2 deletions cmd/lakectl/cmd/identity.go
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@ import (
"github.com/spf13/cobra"
)

const userInfoTemplate = `User id: {{.UserID|yellow}}
const userInfoTemplate = `User ID: {{.UserID|yellow}}
{{if .Email}}Email: {{.Email|blue}}
{{end}}Creation date: {{.CreationDate|date}}
{{end}}Creation Date: {{.CreationDate|date}}
`

var identityCmd = &cobra.Command{
@@ -41,6 +41,7 @@ var identityCmd = &cobra.Command{
},
}

//nolint:gochecknoinits
func init() {
rootCmd.AddCommand(identityCmd)
}
2 changes: 1 addition & 1 deletion esti/golden/lakectl_identity.golden
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
User ID: <USER_ID>
Creation Date: <DATE> <TIME> <TZ>
Creation Date: <DATE> <TIME> <TZ>
2 changes: 1 addition & 1 deletion esti/golden/lakectl_identity_with_mail.golden
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
User ID: <USER_ID>
Email: <EMAIL>
Creation Date: <DATE> <TIME> <TZ>
Creation Date: <DATE> <TIME> <TZ>