File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -25,21 +25,10 @@ A few scenarios where this can be useful:
2525
2626``` bash
2727$ git clone github.com/ncode/tagit
28- $ go build
29- $ consul agent -dev &
30- $ curl --request PUT --data @examples/consul/my-service1.json http://127.0.0.1:8500/v1/agent/service/register
31- $ ./tagit run --consul-addr=127.0.0.1:8500 --service-id=my-service1 --script=./examples/tagit/example.sh --interval=5s --tag-prefix=tagit
32- INFO[0000] running command command=./examples/tagit/example.sh service=my-service1
33- INFO[0000] updating service tags service=my-service1 tags=" [v1 tagit-nice tagit-it tagit-works]"
34- INFO[0005] running command command=./examples/tagit/example.sh service=my-service1
35- INFO[0010] running command command=./examples/tagit/example.sh service=my-service1
36- INFO[0015] running command command=./examples/tagit/example.sh service=my-service1
37- $ ./tagit cleanup --consul-addr=127.0.0.1:8500 --service-id=my-service1 --tag-prefix=tagit
38- INFO[0000] current service tags service=my-service1 tags=" [v1 tagit-nice tagit-it tagit-works]"
39- INFO[0000] updating service tags service=my-service1 tags=" [v1]"
28+ $ cd configs/development
29+ $ make
4030```
4131
42-
4332``` mermaid
4433sequenceDiagram
4534 participant tagit
You can’t perform that action at this time.
0 commit comments