xline-kv / Xline

A geo-distributed KV store for metadata management
https://xline.cloud
Apache License 2.0
562 stars 70 forks source link

[Feature]: Add exec command args for xlinectl lock command #823

Open Phoenix500526 opened 1 month ago

Phoenix500526 commented 1 month ago

Description about the feature

The etcdctl provides the exec-command arg for the lock command. Therefore, when you want to execute some commands after acquiring a lock, you can use one-line command, like ./etcdctl lock mylock ./etcdctl put foo bar, instead of several shell commands, like ./etcdctl lock mylock; ./etcdctl put foo bar. I think this way is more user-friendly.

So far, the xlinectl doesn't support the exec command args for the lock command. I think it's not hard to implement. I leave an issue here to track. Please feel free to take this issue if you are interested in it. And please let me know if you need any help or more information.

Code of Conduct

github-actions[bot] commented 1 month ago

👋 Thanks for opening this issue!

Reply with the following command on its own line to get help or engage:

bhavik-goplani commented 1 month ago

/assignme

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.

bhavik-goplani commented 1 day ago

Working on it. Need to incorporate new changes to the lock command