<commit_before># consul-lock

Like the setlock command using Consul session/kv.

## Repository

[github.com/fujiwara/consul-lock](https://github.com/fujiwara/consul-lock)

## Binary releases

[github.com/fujiwara/consul-lock/releases](https://github.com/fujiwara/consul-lock/releases)

## Build & Install

Install to $GOPATH.

    $ go get github.com/fujiwara/consul-lock

## Usage

    $ consul-lock [-nNxX] KEY program [ arg ... ]

    -n: No delay. If KEY is locked by another process, consul-lock gives up.
    -N: (Default.) Delay. If KEY is locked by another process, consul-lock waits until it can obtain a new lock.
    -x: If KEY is locked, consul-lock exits zero.
    -X: (Default.) If KEY is locked, consul-lock prints an error message and exits nonzero.
   -lock-delay=15: Consul session LockDelay seconds

## LICENSE

MIT<commit_msg>update readme. (miss)<commit_after># consul-lock

Like the setlock command using Consul session/kv.

## Repository

[github.com/fujiwara/consul-lock](https://github.com/fujiwara/consul-lock)

## Binary releases

[github.com/fujiwara/consul-lock/releases](https://github.com/fujiwara/consul-lock/releases)

## Build & Install

Install to $GOPATH.

    $ go get github.com/fujiwara/consul-lock

## Usage

    $ consul-lock [-nNxX] KEY program [ arg ... ]

    -n: No delay. If KEY is locked by another process, consul-lock gives up.
    -N: (Default.) Delay. If KEY is locked by another process, consul-lock waits until it can obtain a new lock.
    -x: If KEY is locked, consul-lock exits zero.
    -X: (Default.) If KEY is locked, consul-lock prints an error message and exits nonzero.
    -lock-delay=15: Consul session LockDelay seconds

## LICENSE

MIT
{'fraction_non_alphanumeric': 0.11816578483245149, 'fraction_numerical': 0.0023515579071134627, 'mean_word_length': 3.3753213367609254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2159006', 'n_tokens_mistral': 601, 'n_tokens_neox': 569, 'n_words': 179}