Skip to content

Guess who runs 'mysync maintenance on'#170

Merged
teem0n merged 6 commits intomasterfrom
guess-who
Mar 24, 2025
Merged

Guess who runs 'mysync maintenance on'#170
teem0n merged 6 commits intomasterfrom
guess-who

Conversation

@ostinru
Copy link
Collaborator

@ostinru ostinru commented Mar 21, 2025

Guess who runs 'mysync maintenance on' and show it in mysync info:

mysync maintenance on --reason "test"
maintenance enabled
mysync info
...
maintenance:
  initiated_at: "2025-03-21T12:11:29.390216177Z"
  initiated_by: ostinru@rc1a-mm25u5an15rj42ao.example.com      <-- HERE!
  mysync_paused: true
  reason: test
  should_leave: false

if !eReg.MatchString(_a) {
return path
}
} else if _a != _e {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively - add jq as matcher... however it seems to be overkill for this task (And I am not sure that go-implementations supports match filter)

https://developer.zendesk.com/documentation/integration-services/developer-guide/jq-cheat-sheet/#extracting-a-pattern-from-a-string

@ostinru ostinru requested a review from teem0n March 22, 2025 16:57
@teem0n teem0n merged commit f14495f into master Mar 24, 2025
54 checks passed
@teem0n teem0n deleted the guess-who branch March 24, 2025 07:00
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.

2 participants