Skip to content

Human readable output when a lock was created - #3

Open
sijis wants to merge 2 commits into
zoni:masterfrom
sijis:feature/relative_time
Open

Human readable output when a lock was created#3
sijis wants to merge 2 commits into
zoni:masterfrom
sijis:feature/relative_time

Conversation

@sijis

@sijis sijis commented Aug 26, 2018

Copy link
Copy Markdown

Try and get some relative time output when a lock was created.

Sometimes it is hard to relate when a lock was created and manually trying to understand if that was a few minutes, a couple of hours or maybe even a day or two can be a problem.

The !locks output would now be

[@saviles ➡ @errbot] >>> !locks
something locked by CHANGE_ME 5 hours ago on 2018-08-25 22:52:17.114810 (No reason specified)
something1 locked by CHANGE_ME 5 hours ago on 2018-08-25 22:52:24.631506 (No reason specified)
myself locked by sijis 5 hours ago on 2018-08-25 22:52:35.717073 (No reason specified)

Locking something that is owned by someone else

[@zoni ➡ @errbot] >>> !lock myself
myself is already locked by sijis (6 hours ago) and must be unlocked first

Unlocking something owned by someone else

[@zoni ➡ @errbot] >>> !unlock myself
myself was locked by sijis (6 hours ago), not unlocking without --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant