diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 23:05:03 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:52:54 +0100 |
commit | c235d89d36500e58e3bcadda94e9cab06023dd55 (patch) | |
tree | c2ee84316886cca3e439dbc12f64d6a06ddd7c18 /commands/user.go | |
parent | 46beb4b886761ff69abe2ce45c2498a4fafe50d9 (diff) | |
download | git-bug-c235d89d36500e58e3bcadda94e9cab06023dd55.tar.gz |
commands: show the last modification time in "user"
Diffstat (limited to 'commands/user.go')
-rw-r--r-- | commands/user.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/user.go b/commands/user.go index daf9e654..c4208d41 100644 --- a/commands/user.go +++ b/commands/user.go @@ -36,6 +36,9 @@ func runUser(cmd *cobra.Command, args []string) error { fmt.Printf("Name: %s\n", id.Name()) fmt.Printf("Login: %s\n", id.Login()) fmt.Printf("Email: %s\n", id.Email()) + fmt.Printf("Last modification: %s (lamport %d)\n", + id.LastModification().Time().Format("Mon Jan 2 15:04:05 2006 +0200"), + id.LastModificationLamport()) // fmt.Printf("Protected: %v\n", id.IsProtected()) return nil |