shapeup-cli 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4000fd1f4308ab79838118f7d7b7dd14b2b58401d4afc5eba1627de201c7c563
4
- data.tar.gz: 80940c7771815abf3c296eb42f1754f791cf1bb49c1392c3afedbf4af5cd0424
3
+ metadata.gz: c375b2778939c522cdc558c09d8065c5ef8a05e3fe66ffba8ff294c4bd216d30
4
+ data.tar.gz: 19e00ac320970b20aa0690fc971c9bbfafcc33edcb18cd6601f529173cf9da6a
5
5
  SHA512:
6
- metadata.gz: 027de0d927844bfa5b56725b5cb64bfc0645f0c90f38d988df4f4e4bd9bc31ca909f70778f9f96ba165acb1e8a388986c312d92970eaae14cdc66eeb58119472
7
- data.tar.gz: ef74608be6b19b2e6ce61c0288337144c1359ba55d6168032fd7fa4f1ae4e4bbc804cec1f3a4b9f4ccd54791f3ad86f332b3f3e75f9644dfde19829040d1e52a
6
+ metadata.gz: 053af8fe5fc51632541677b89db6473376aadf1a93120cfbbaf16d2510f85576e06d2177d7104b8e55bb1e39a90520083a6ba5dd7ec3d04d5263f08bd8aaf9d3
7
+ data.tar.gz: 721a2cf000f7e3f87769b4715efe8153d977a8912d5e69bff2117416c2f4edb54f43b874534ed17c1588481b7cd4448c7f2347e1f304c6e2da6ca6752b965c5c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShapeupCli
4
- VERSION = "0.10.2"
4
+ VERSION = "0.10.3"
5
5
  end
@@ -103,9 +103,25 @@ Signed in as the user, it gives the agent a fresh token, saves it as a CLI profi
103
103
  the agent, and listens as the agent. Add `--trust members` only if the user asked for anyone in
104
104
  the organisation to be able to use the agent. The default trusts only the agent's owner.
105
105
 
106
- Watch its output. Use the Monitor tool when you have it, so each new line wakes you, with the
107
- longest timeout it allows. When the watch ends but the connector is still running, start watching
108
- again straight away, without telling the user. Every line is one JSON event:
106
+ Watch its output with the Monitor tool when you have it, using the longest timeout it allows and
107
+ exactly this command, with `OUTPUT` set to the connector's output file:
108
+
109
+ ```bash
110
+ f=OUTPUT; seen="$f.seen"; n=$(cat "$seen" 2>/dev/null || echo 0)
111
+ while true; do
112
+ m=$(wc -l < "$f")
113
+ if [ "$m" -gt "$n" ]; then
114
+ sed -n "$((n + 1)),${m}p" "$f" | grep -v '"retryable":true'
115
+ n=$m; echo "$n" > "$seen"
116
+ fi
117
+ sleep 3
118
+ done
119
+ ```
120
+
121
+ Don't use `tail -f` or `tail -F` on the output file: they can miss lines. The command keeps its place
122
+ in `OUTPUT.seen`, so when the watch ends but the connector is still running, start it again
123
+ straight away, without telling the user, and nothing is missed or repeated. If the connector
124
+ exits, you are told separately. Every line is one JSON event:
109
125
 
110
126
  | `type` | What to do |
111
127
  |--------|------------|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shapeup-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShapeUp