clever-tools 3.0.2 → 3.2.0
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.
- package/README.md +33 -260
- package/bin/clever.js +59 -57
- package/package.json +8 -4
- package/src/command-options.js +42 -0
- package/src/commands/applications.js +8 -5
- package/src/commands/create.js +4 -2
- package/src/commands/deploy.js +27 -5
- package/src/models/addon.js +1 -1
- package/src/models/app_configuration.js +14 -1
- package/src/models/application.js +5 -2
- package/src/models/domain.js +1 -1
- package/src/models/git.js +1 -1
- package/src/models/isomorphic-http-with-agent.js +19 -0
- package/src/models/log-v4.js +11 -3
- package/src/models/send-to-api.js +15 -5
- package/CHANGELOG.md +0 -611
- package/src/get-output-format-option.js +0 -23
package/CHANGELOG.md
DELETED
|
@@ -1,611 +0,0 @@
|
|
|
1
|
-
# clever-tools changelog
|
|
2
|
-
|
|
3
|
-
## Unreleased (????-??-??)
|
|
4
|
-
|
|
5
|
-
...
|
|
6
|
-
|
|
7
|
-
## 3.0.2 (2023-11-01)
|
|
8
|
-
|
|
9
|
-
* chore: update @clevercloud/client to 8.0.2 (fix Node.js < 18.16 abort bug)
|
|
10
|
-
|
|
11
|
-
## 3.0.1 (2023-10-19)
|
|
12
|
-
|
|
13
|
-
* Move from Node.js v18.5.0 to v18.15.0
|
|
14
|
-
|
|
15
|
-
## 3.0.0 (2023-10-19)
|
|
16
|
-
|
|
17
|
-
### ⚠ BREAKING CHANGES
|
|
18
|
-
|
|
19
|
-
* Move from Node.js v12.22.8 to v18.5.0
|
|
20
|
-
|
|
21
|
-
### Features
|
|
22
|
-
|
|
23
|
-
* add config file and auth source to `clever diag`
|
|
24
|
-
* add shell to `clever diag`
|
|
25
|
-
* improve `clever diag`, display (color and details) for oAuth token and user ID
|
|
26
|
-
* `clever deploy`: use new logs API (faster, longer, order)
|
|
27
|
-
* `clever restart`: use new logs API (faster, longer, order)
|
|
28
|
-
* `clever logs`: use new logs API (faster, longer, order), only for applications for now
|
|
29
|
-
|
|
30
|
-
## 2.11.0 (2023-07-25)
|
|
31
|
-
|
|
32
|
-
* skip preorder step on addon creation
|
|
33
|
-
* add `clever addon env` command
|
|
34
|
-
* improve implicit ID params (owner and add-on ID / real ID) for `clever database`
|
|
35
|
-
|
|
36
|
-
## 2.10.1 (2023-02-20)
|
|
37
|
-
|
|
38
|
-
* `clever database` command
|
|
39
|
-
* Improve output when trying
|
|
40
|
-
* `clever database backups` command
|
|
41
|
-
* Improve output when there are no backups yet
|
|
42
|
-
* Fix command with personal orga
|
|
43
|
-
* Improve example for `database-id` option
|
|
44
|
-
|
|
45
|
-
## 2.10.0 (2023-02-16)
|
|
46
|
-
|
|
47
|
-
* add `clever database backups DATABASE-ID` command to list backups of a database
|
|
48
|
-
* add `clever database backups download DATABASE-ID BACKUP-IP` command to download a backup
|
|
49
|
-
* add `clever curl` so we can prefix any `curl` command with `clever` and benefit from the local oAuth v1 auth
|
|
50
|
-
|
|
51
|
-
## 2.10.0-beta.2 (2022-09-13)
|
|
52
|
-
|
|
53
|
-
* NetworkGroups fix wrong function call.
|
|
54
|
-
|
|
55
|
-
## 2.10.0-beta.0 (2022-09-06)
|
|
56
|
-
|
|
57
|
-
* Add NetworkGroups commands `clever ng --help`
|
|
58
|
-
|
|
59
|
-
## 2.9.1 (2022-02-28)
|
|
60
|
-
|
|
61
|
-
* Upgrade opn to open
|
|
62
|
-
|
|
63
|
-
## 2.9.0 (2022-01-12)
|
|
64
|
-
|
|
65
|
-
* Add NewRelic support in `clever drains`
|
|
66
|
-
|
|
67
|
-
## 2.8.1 (2022-01-10)
|
|
68
|
-
|
|
69
|
-
* Fix `colors` to `1.4.0`
|
|
70
|
-
|
|
71
|
-
## 2.8.0 (2021-02-09)
|
|
72
|
-
|
|
73
|
-
* Add options support for `clever addon create` (options like encryption-at-rest)
|
|
74
|
-
* Display available versions in `clever addon providers show <provider>`
|
|
75
|
-
* Display available options in `clever addon providers show <provider>`
|
|
76
|
-
* Fix `clever deploy` which was displaying logs from runtime instances
|
|
77
|
-
* Fix `clever accesslogs` so it doesn't fail when source object is undefined
|
|
78
|
-
* Prevent race conditions on parallel CI configs with `clever deploy` and git add remote
|
|
79
|
-
* Format `.clever.json` (Mickael Chanrion)
|
|
80
|
-
|
|
81
|
-
## 2.7.2 (2020-10-09)
|
|
82
|
-
|
|
83
|
-
* addon: fix create relying on default region
|
|
84
|
-
|
|
85
|
-
## 2.7.1 (2020-08-21)
|
|
86
|
-
|
|
87
|
-
* Fix linux-release-info usage in `clever diag`
|
|
88
|
-
|
|
89
|
-
## 2.7.0 (2020-08-20)
|
|
90
|
-
|
|
91
|
-
* Improve `clever deploy` perfs in several cases (partial push, force push...)
|
|
92
|
-
* NOTE: Pushing a brand new repo is still slow in some situations
|
|
93
|
-
* Add commands for favourite domains (Julien Tanguy)
|
|
94
|
-
* `clever domain` now displays a star prefix `*` before the favourite domain in the list
|
|
95
|
-
* `clever domain favourite` just displays the favourite domain (no prefix)
|
|
96
|
-
* `clever domain favourite set example.com` sets the favourite domain to `example.com`
|
|
97
|
-
* `clever domain favourite unset` unsets the favourite domain for this app
|
|
98
|
-
* Add a message while waiting for deploy to start `clever deploy` and `clever restart`
|
|
99
|
-
* Add shallow detection with appropriate error message for `clever deploy`
|
|
100
|
-
* Fix `clever status` typo in output (Clément Delafargue)
|
|
101
|
-
* Fix `clever env` error message when JSON input is incorrect (Jean Baptiste Noblot)
|
|
102
|
-
* Update dependencies
|
|
103
|
-
|
|
104
|
-
This is the one with the latest isomorphic-git!!!
|
|
105
|
-
|
|
106
|
-
## 2.6.1 (2020-05-29)
|
|
107
|
-
|
|
108
|
-
* Fix `clever restart` default cache behaviour and option `--without-cache`
|
|
109
|
-
* Fix `clever config` docs wording (Clément Delafargue)
|
|
110
|
-
|
|
111
|
-
## 2.6.0 (2020-05-28)
|
|
112
|
-
|
|
113
|
-
* Add `--addon` option for all `clever drain` commands
|
|
114
|
-
|
|
115
|
-
## 2.5.0 (2020-05-26)
|
|
116
|
-
|
|
117
|
-
* Add `clever config` command to configure application options
|
|
118
|
-
* Existing supported options: `name`, `description`, `zero-downtime`, `sticky-sessions` and `cancel-on-push`
|
|
119
|
-
* New supported option: `force-https`
|
|
120
|
-
* Add `--follow` to `clever deploy` and `clever restart` so you can continue to follow logs after the deployment is finished
|
|
121
|
-
* Fix #318 where `clever deploy` and `clever restart` would sometimes never exit
|
|
122
|
-
* We changed the way we detect when a deployment is finished
|
|
123
|
-
* Fix #304 where `clever logs` would run endlessly even when using `--before/--until`
|
|
124
|
-
|
|
125
|
-
### Internals
|
|
126
|
-
|
|
127
|
-
* We completely removed our dependency to Bacon.js, goodbye old friend 😘
|
|
128
|
-
* `@clevercloud/client` was updated to `6.0.0` so we can use the new event based API for logs and events
|
|
129
|
-
|
|
130
|
-
## 2.4.0 (2020-04-16)
|
|
131
|
-
|
|
132
|
-
* Add `--json` option to `clever env import` and `clever published-config import` (Clément Delafargue)
|
|
133
|
-
|
|
134
|
-
## 2.3.0 (2020-03-30)
|
|
135
|
-
|
|
136
|
-
* Add `clever tcp-redirs` command to configure TCP redirections
|
|
137
|
-
|
|
138
|
-
## 2.2.3 (2020-03-30)
|
|
139
|
-
|
|
140
|
-
- Fix `link` when app ID is not in personal space
|
|
141
|
-
|
|
142
|
-
## 2.2.2 (2020-03-28)
|
|
143
|
-
|
|
144
|
-
- Fix `login` and `logout` commands, update mkdirp usage (new version returns a promise)
|
|
145
|
-
|
|
146
|
-
## 2.2.1 (2020-03-27)
|
|
147
|
-
|
|
148
|
-
### For users
|
|
149
|
-
|
|
150
|
-
- Fix drain type autocomplete
|
|
151
|
-
- Always save `org_id` in `.clever.json` with `clever link`
|
|
152
|
-
- Add on API calls when `CLEVER_VERBOSE` is enabled
|
|
153
|
-
|
|
154
|
-
### Internals
|
|
155
|
-
|
|
156
|
-
We did a bit refactor in the codebase, less bacon, more promises and no more legacy clever-client!!
|
|
157
|
-
|
|
158
|
-
- Remove Bacon from `Interact.confirm()`
|
|
159
|
-
- Update @clevercloud/client to 5.0.1 (with fixed/improved function names)
|
|
160
|
-
- Add `getAppDetails()` in app_configuration
|
|
161
|
-
- Cleanup in models/addon
|
|
162
|
-
- Cleanup in models/application
|
|
163
|
-
- Cleanup in models/organisation
|
|
164
|
-
- Refactor `clever addon` (less Bacon, more promise)
|
|
165
|
-
- Refactor `clever applications` (less Bacon, more promise)
|
|
166
|
-
- Refactor `clever cancel-deploy` (less Bacon, more promise)
|
|
167
|
-
- Refactor `clever console` (less Bacon, more promise)
|
|
168
|
-
- Refactor `clever create` (less Bacon, more promise)
|
|
169
|
-
- Refactor `clever delete` (less Bacon, more promise)
|
|
170
|
-
- Refactor `clever deploy` and `clever restart` (less Bacon, more promise)
|
|
171
|
-
- Refactor `clever domain` (less Bacon, more promise)
|
|
172
|
-
- Refactor `clever link` (less Bacon, more promise)
|
|
173
|
-
- Refactor `clever logs` (less Bacon, more promise)
|
|
174
|
-
- Refactor `clever service` (less Bacon, more promise)
|
|
175
|
-
- Refactor `clever ssh` (less Bacon, more promise)
|
|
176
|
-
- Refactor `clever stop` (less Bacon, more promise)
|
|
177
|
-
- Refactor `clever unlink` (less Bacon, more promise)
|
|
178
|
-
- Refactor `make-default` command (less Bacon, more promise)
|
|
179
|
-
- Remove legacy clever-client usage with API client injection
|
|
180
|
-
- Remove unused `getAppData()` from app_configuration
|
|
181
|
-
- Use `getAppDetails()` in `clever accesslogs`
|
|
182
|
-
- Use `getAppDetails()` in `clever activity`
|
|
183
|
-
- Use `getAppDetails()` in `clever drain`
|
|
184
|
-
- Use `getAppDetails()` in `clever env`
|
|
185
|
-
- Use `getAppDetails()` in `clever open`
|
|
186
|
-
- Use `getAppDetails()` in `clever published-config`
|
|
187
|
-
- Use `getAppDetails()` in `clever scale`
|
|
188
|
-
- Use `getAppDetails()` in `clever status`
|
|
189
|
-
- Use `getAppDetails()` in notification model
|
|
190
|
-
|
|
191
|
-
## 2.2.0 (2020-03-26)
|
|
192
|
-
|
|
193
|
-
* Alias `after/before` to `since/until` in commands `logs` and `accesslogs`
|
|
194
|
-
* Fix `clever accesslogs` with `--before` and/or `--after` params
|
|
195
|
-
|
|
196
|
-
## 2.1.1 (2020-03-24)
|
|
197
|
-
|
|
198
|
-
* Fix `clever scale --build-flavor`
|
|
199
|
-
|
|
200
|
-
## 2.1.0 (2020-03-20)
|
|
201
|
-
|
|
202
|
-
* Add `clever accesslogs` command to get history and contiuous access logs for apps and add-ons (fix #360)
|
|
203
|
-
* Improve `clever notify-email` options handling and help
|
|
204
|
-
* Warn about node version if there is an error
|
|
205
|
-
* Enable small image for release via docker image
|
|
206
|
-
|
|
207
|
-
## 2.0.0 (2020-03-06)
|
|
208
|
-
|
|
209
|
-
* Enable node engines >=12 (fix #358)
|
|
210
|
-
* Add elixir in autocomplete (fix #359)
|
|
211
|
-
* Add new `clever env import-vars FOO,BAR,BAZ` command
|
|
212
|
-
* Handle error when the .git folder is not found (fix #357) (Sacramentix)
|
|
213
|
-
|
|
214
|
-
### ⚠️ BREAKING CHANGES
|
|
215
|
-
|
|
216
|
-
* Update @clevercloud/client to 3.0.0 (fix env-var parsing/serialization)
|
|
217
|
-
|
|
218
|
-
Be careful if you use `clever env import` with `2.0.0` with a file that was generated with an older version.
|
|
219
|
-
|
|
220
|
-
Please read [PR 18](https://github.com/CleverCloud/clever-client.js/pull/18) for more details.
|
|
221
|
-
|
|
222
|
-
## 1.6.3 (2020-03-03)
|
|
223
|
-
|
|
224
|
-
- Fix git commit display before a `clever restart` (for new empty repos)
|
|
225
|
-
- Fix issue when config dir does not exist
|
|
226
|
-
- Fix error handling (like ECONNRESET) via `@clevercloud/client@2.3.1`
|
|
227
|
-
- Fix some connection errors via `@clevercloud/client@2.3.1`
|
|
228
|
-
|
|
229
|
-
## 1.6.2 (2019-10-03)
|
|
230
|
-
|
|
231
|
-
- Fix git commit diplay just before a `clever deploy` (for new empty repos)
|
|
232
|
-
|
|
233
|
-
## 1.6.1 (2019-09-30)
|
|
234
|
-
|
|
235
|
-
- Fix: Look for `.git` recursively so you can `clever deploy` from subdir
|
|
236
|
-
|
|
237
|
-
## 1.6.0 (2019-09-27)
|
|
238
|
-
|
|
239
|
-
- Improve error stack in verbose mode
|
|
240
|
-
- Use same color display for commits in `clever restart` and `clever deploy`
|
|
241
|
-
- Add details about commits on `clever deploy`
|
|
242
|
-
- Make `clever open` default to https://fqdn
|
|
243
|
-
- Add `clever diag` command to get various infos to help support
|
|
244
|
-
- Add user id in `clever profile`
|
|
245
|
-
|
|
246
|
-
## 1.5.1 => 1.5.2
|
|
247
|
-
|
|
248
|
-
- Moving our releases to another cellar
|
|
249
|
-
|
|
250
|
-
## 1.5.0 (2019-09-02)
|
|
251
|
-
|
|
252
|
-
See previous beta releases
|
|
253
|
-
|
|
254
|
-
## 1.5.0-beta.15 (2019-08-30)
|
|
255
|
-
|
|
256
|
-
- Add `--build-flavor` to `clever scale` (Clément Delafargue)
|
|
257
|
-
- Add dedicated build details to `clever status`
|
|
258
|
-
|
|
259
|
-
## 1.5.0-beta.14 (2019-08-29)
|
|
260
|
-
|
|
261
|
-
* Replace superagent bintray upload with vanilla node
|
|
262
|
-
* Add 2XL and 3XL flavors
|
|
263
|
-
|
|
264
|
-
## 1.5.0-beta.9 => 1.5.0-beta.13
|
|
265
|
-
|
|
266
|
-
These release were only created for some tests on our CI pipeline.
|
|
267
|
-
|
|
268
|
-
## 1.5.0-beta.8 (2019-08-28)
|
|
269
|
-
|
|
270
|
-
- Rollback open module to opn (waiting for bugfix)
|
|
271
|
-
- Update @clevercloud/client (fix SSE)
|
|
272
|
-
|
|
273
|
-
## 1.5.0-beta.7 (2019-08-23)
|
|
274
|
-
|
|
275
|
-
- Use new @clevercloud/client auto-retry streams (logs & events)
|
|
276
|
-
- Fix "opn" module renamed to "open"
|
|
277
|
-
- Fix split error on logger
|
|
278
|
-
|
|
279
|
-
## 1.5.0-beta.6 (2019-08-02)
|
|
280
|
-
|
|
281
|
-
- Log error trace in --verbose mode
|
|
282
|
-
- Update deps (rename opn => open)
|
|
283
|
-
- Fix logs with `clever deploy` (update @clevercloud/client to 2.0.0-beta.1)
|
|
284
|
-
- Fix typo "connexion" => "connection" in logs and README
|
|
285
|
-
|
|
286
|
-
## 1.5.0-beta.5 (2019-08-01)
|
|
287
|
-
|
|
288
|
-
### For users
|
|
289
|
-
|
|
290
|
-
- Fix `--verbose` global param
|
|
291
|
-
- Docs: Add 'gitter' in webhooks format
|
|
292
|
-
- Fix bug with `colors` module in `clever notify-email`
|
|
293
|
-
- Improve some error messages in `clever webhooks` and `clever notify-email`
|
|
294
|
-
- `--notify` is now required for `clever notify-email`
|
|
295
|
-
|
|
296
|
-
### Internals
|
|
297
|
-
|
|
298
|
-
- Remove legacy getAuthorization
|
|
299
|
-
- Refactor send-to-api token loading
|
|
300
|
-
- Use @clevercloud/client superagent helper instead of request
|
|
301
|
-
- Refactor logout into promise mode
|
|
302
|
-
- Replace request with superagent
|
|
303
|
-
- Use @clevercloud/client prepareEventsWs
|
|
304
|
-
- Use new SSE endpoint for logs (#207)
|
|
305
|
-
- Use @clevercloud/client directly for GET /logs/{appId}
|
|
306
|
-
- Use @clevercloud/client directly in drain
|
|
307
|
-
- Use @clevercloud/client directly in notify-email and webhooks
|
|
308
|
-
- Rename functions in notify-email and webhooks
|
|
309
|
-
- Split notifications into notify-email and webhooks
|
|
310
|
-
- Ease testing for preprod with comments in config
|
|
311
|
-
- Update @clevercloud/client to 2.0.0-beta.0
|
|
312
|
-
|
|
313
|
-
## 1.5.0-beta.4 (2019-07-25)
|
|
314
|
-
|
|
315
|
-
- Fix --add-export option for `clever env`
|
|
316
|
-
|
|
317
|
-
## 1.5.0-beta.3 (2019-07-24)
|
|
318
|
-
|
|
319
|
-
- Update to @clevercloud/client@1.0.1 (fix for JSON requests)
|
|
320
|
-
|
|
321
|
-
## 1.5.0-beta.2 (2019-07-24)
|
|
322
|
-
|
|
323
|
-
- Rollback isomorphic-git to 0.37.0 (for now)
|
|
324
|
-
|
|
325
|
-
## 1.5.0-beta.1 (2019-07-24)
|
|
326
|
-
|
|
327
|
-
- Update @clevercloud/client (env-var util sorts variables now)
|
|
328
|
-
- Upgrade node version to 12
|
|
329
|
-
|
|
330
|
-
## 1.5.0-beta.0 (2019-07-23)
|
|
331
|
-
|
|
332
|
-
- Use new `@clevercloud/client` to make HTTP requests (via legacy wrapper) everywhere
|
|
333
|
-
- Use new `@clevercloud/client` to make HTTP requests (directly) in `env` and `published-config` commands
|
|
334
|
-
- Use new parsing/validation from `@clevercloud/client` in `env` and `published-config` commands
|
|
335
|
-
- `clever env import` and `clever published-config import` now report detailed errors
|
|
336
|
-
- `clever env set` and `clever published-config set` now report invalid name errors
|
|
337
|
-
- `clever env import` and `clever published-config import` of multiline variables works!!
|
|
338
|
-
- Update deps
|
|
339
|
-
- New `isomorphic-git` should improve `clever deploy` perfs
|
|
340
|
-
- Update docs about `clever env import`
|
|
341
|
-
|
|
342
|
-
## 1.4.2 (2019-05-15)
|
|
343
|
-
|
|
344
|
-
- Fix wrong auto-scalability setting in `clever status` (mpapillon)
|
|
345
|
-
- Fix `clever service link-app` (mpapillon)
|
|
346
|
-
- Update dependencies
|
|
347
|
-
|
|
348
|
-
## 1.4.1 (2019-03-28)
|
|
349
|
-
|
|
350
|
-
- Improve README.md sections about drains
|
|
351
|
-
- Fix errors when using `clever activity` with non TTY stdout (haitlahcen)
|
|
352
|
-
- Remove leftover console.log in `clever env import` (Clément Delafargue)
|
|
353
|
-
|
|
354
|
-
## 1.4.0 (2019-03-19)
|
|
355
|
-
|
|
356
|
-
- Depreciate datadog tcp drain, and remove creation of them
|
|
357
|
-
- Add datadog http drain
|
|
358
|
-
|
|
359
|
-
## 1.3.0 (2019-01-11)
|
|
360
|
-
|
|
361
|
-
- Fix endless wait with `clever login` on MacOS (Renan Decamps)
|
|
362
|
-
- Fix wrong activity display for WIP
|
|
363
|
-
- Always do a process.exit(0) when a command finishes properly
|
|
364
|
-
- Limit the number or retries for when a WebSocket connection fails
|
|
365
|
-
|
|
366
|
-
## 1.2.1 (2018-11-23)
|
|
367
|
-
|
|
368
|
-
- Fix packaging problems with exherbo, docker and homebrew
|
|
369
|
-
|
|
370
|
-
## 1.2.0 (2018-11-23)
|
|
371
|
-
|
|
372
|
-
- Add datadog drain
|
|
373
|
-
|
|
374
|
-
## 1.1.1 (2018-11-09)
|
|
375
|
-
|
|
376
|
-
- Rollback isomorphic-git to 0.37.0 (for now)
|
|
377
|
-
- Fix `slugify` function used to create alias from names
|
|
378
|
-
|
|
379
|
-
## 1.1.0 (2018-10-30)
|
|
380
|
-
|
|
381
|
-
- Fix bad usage of bacon.js in 1.0.2
|
|
382
|
-
- Add docker image and publish it at docker hub
|
|
383
|
-
|
|
384
|
-
## 1.0.2 (2018-10-19)
|
|
385
|
-
|
|
386
|
-
- Fix wrong name displayed after a login if you were already logged in as someone else
|
|
387
|
-
|
|
388
|
-
## 1.0.1 (2018-10-18)
|
|
389
|
-
|
|
390
|
-
- Fix unspecified name display as null in `clever login` and `clever profile`
|
|
391
|
-
- Fix open webpages on windows: use `opn` npm package instead of custom code
|
|
392
|
-
|
|
393
|
-
## 1.0.0 (2018-10-15)
|
|
394
|
-
|
|
395
|
-
### User features
|
|
396
|
-
|
|
397
|
-
- Add `clever logout` command to destroy local token/secret (Corentin Grall)
|
|
398
|
-
- Add `clever console` command to open the Web console on the project page (Corentin Grall)
|
|
399
|
-
- Add `clever version` command
|
|
400
|
-
- Simplify login process: users no longer need to copy/paste token and secret
|
|
401
|
-
- Display "clever restart --commit ..." hint when a simple restart won't do what the user wants
|
|
402
|
-
- Fix drain creation authorization (Sébastian Le Merdy)
|
|
403
|
-
- Display `[ERROR]` keyword in red when an error occurs
|
|
404
|
-
|
|
405
|
-
### CI/CD features
|
|
406
|
-
|
|
407
|
-
- Implicit login when env vars `CLEVER_TOKEN` and `CLEVER_SECRET` are present
|
|
408
|
-
- Exit process with status 1 when an error occurs
|
|
409
|
-
- Forward all error logs to stderr
|
|
410
|
-
|
|
411
|
-
### Technical improvements
|
|
412
|
-
|
|
413
|
-
- Replace [nodegit](https://github.com/nodegit/nodegit) with [isomorphic-git](https://github.com/isomorphic-git/isomorphic-git)
|
|
414
|
-
- Add ESLint config with a big refactoring to go along
|
|
415
|
-
- Always use the npm `colors` package in safe mode: no global `String` pollution
|
|
416
|
-
- Build, package and publish with a multibranch pipeline project on Jenkins
|
|
417
|
-
|
|
418
|
-
### Packaging & distribution
|
|
419
|
-
|
|
420
|
-
- Add a directory in tar.gz and zip archives, the clever binary is in this directory
|
|
421
|
-
- Publish `.rpm` and `.deb` packages (Thibaud Lepretre)
|
|
422
|
-
- Publish exherbo packages
|
|
423
|
-
- Publish chocolatey packages automatically
|
|
424
|
-
- Publish npm package, it's back!
|
|
425
|
-
- Introduce beta releases: npm, rpm, deb, archlinux, exherbo, chocolatey, homebrew...
|
|
426
|
-
|
|
427
|
-
## 0.10.1 (2018-01-16)
|
|
428
|
-
|
|
429
|
-
- Add `clever env` to display app dependencies environment variables (fixes #165)
|
|
430
|
-
- Add `clever profile` to display infos about current logged in user (name, email 2FA) (fixes #161)
|
|
431
|
-
- Add `-i` option to `clever ssh` to provide identify file (fixes #164)
|
|
432
|
-
- Show commit about to be redeployed (fixes #145)
|
|
433
|
-
- Ignore parent ".clever.json" with `clever create` (fixes #179)
|
|
434
|
-
- Normalize (slugify) alias and git remote names (fixes #166)
|
|
435
|
-
- Fix logger and console (fixes #134)
|
|
436
|
-
- Update to latest nodegit (and fix node version to 8.3.0)
|
|
437
|
-
- Fix libss/openssl install docs (Adrien Duclos)
|
|
438
|
-
- Add MacOS installation docs (Antonio Goncalves)
|
|
439
|
-
|
|
440
|
-
## 0.9.2 (2017-09-15)
|
|
441
|
-
|
|
442
|
-
- Ignore disabled variants and only match on variants
|
|
443
|
-
- Use the variant's default flavor when creating an app
|
|
444
|
-
|
|
445
|
-
## 0.9.1 (2017-09-14)
|
|
446
|
-
|
|
447
|
-
- Fix app creation for java variants (jar, war, …)
|
|
448
|
-
- Use app type default flavor instead of hardcoded "S"
|
|
449
|
-
|
|
450
|
-
## 0.9.0 (2017-08-18)
|
|
451
|
-
|
|
452
|
-
- Provide standalone version
|
|
453
|
-
- Fix premature exit in `clever deploy`
|
|
454
|
-
- Fix connection issues with websocket connections
|
|
455
|
-
- Display addonId upon addon creation (Philippe Charrière)
|
|
456
|
-
- Add `--addon` option to `clever logs` (Alexandre Duval)
|
|
457
|
-
- Logs drain management
|
|
458
|
-
- Allow internal addon ids in `clever addon`
|
|
459
|
-
- Fix autocompletion issue with flag names
|
|
460
|
-
|
|
461
|
-
## 0.8.3 (2017-05-30)
|
|
462
|
-
|
|
463
|
-
- Unlink applications when deleting them (fixes #124)
|
|
464
|
-
- Make `install-clever-completion` work on Mac OS (Cédric Corbière)
|
|
465
|
-
- Allow non-interactive login (fixes #128)
|
|
466
|
-
- Filter logs by deployment in `clever logs`
|
|
467
|
-
- Only display logs for the current deployment in `clever deploy` and `clever restart`
|
|
468
|
-
- Fix hanging in `clever restart` (fixes #130)
|
|
469
|
-
|
|
470
|
-
## 0.8.2 (2017-03-22)
|
|
471
|
-
|
|
472
|
-
- Fix `clever link` for PHP-FTP applications
|
|
473
|
-
|
|
474
|
-
## 0.8.1 (2017-03-13)
|
|
475
|
-
|
|
476
|
-
- Fix `clever login` on windows
|
|
477
|
-
|
|
478
|
-
## 0.8.0 (2017-03-06)
|
|
479
|
-
|
|
480
|
-
- More information when creating not free addons
|
|
481
|
-
- Better error message in `clever deploy` when the application is up to date
|
|
482
|
-
- Use temporary git remotes when necessary (instead of failing)
|
|
483
|
-
- Keyword search in `clever logs`
|
|
484
|
-
|
|
485
|
-
## 0.7.1 (2017-02-14)
|
|
486
|
-
|
|
487
|
-
- Fix `clever ssh --alias` behaviour
|
|
488
|
-
- Fix installation on windows systems
|
|
489
|
-
|
|
490
|
-
## 0.7.0 (2017-02-07)
|
|
491
|
-
|
|
492
|
-
- Fix addon creation in the right organisation
|
|
493
|
-
- Add command to delete an application
|
|
494
|
-
- Handle websocket errors (logs, events)
|
|
495
|
-
- Add command to SSH to an application / instance
|
|
496
|
-
- Sort autocomplete results in instanceTypes
|
|
497
|
-
- Add support for Node 7.x (nodegit dependency bump)
|
|
498
|
-
- Drop support for Node <4
|
|
499
|
-
|
|
500
|
-
## 0.6.1 (2016-10-24)
|
|
501
|
-
|
|
502
|
-
- Support for email notifications
|
|
503
|
-
- Simplify installation (dropped dependency on node-expat)
|
|
504
|
-
|
|
505
|
-
## 0.6.0 (2016-10-06)
|
|
506
|
-
|
|
507
|
-
- Better support for CCAPI error messages
|
|
508
|
-
- Warn users using an out-of-date version
|
|
509
|
-
- Favor using git over HTTPS
|
|
510
|
-
- Support for webhooks
|
|
511
|
-
|
|
512
|
-
## 0.5.3 (2016-09-23)
|
|
513
|
-
|
|
514
|
-
- Add format description for date parameters in `clever logs` (Corentin
|
|
515
|
-
Cailleaud)
|
|
516
|
-
- Fix `clever env import`
|
|
517
|
-
- Fix `clever make-default`
|
|
518
|
-
|
|
519
|
-
## 0.5.2 (2016-07-27)
|
|
520
|
-
|
|
521
|
-
- Fix default domain name choice in `clever open`
|
|
522
|
-
- Allow to choose a specific commit in `clever restart`
|
|
523
|
-
- Allow to restart an application without using cache
|
|
524
|
-
|
|
525
|
-
## 0.5.1 (2016-07-07)
|
|
526
|
-
|
|
527
|
-
- Update readme with `0.5.0` changes
|
|
528
|
-
- Update completion and documentation for new java instances
|
|
529
|
-
- Fix issue with installation on ubuntu machines
|
|
530
|
-
- Fix `clever scale` behaviour
|
|
531
|
-
|
|
532
|
-
## 0.5.0 (2016-06-24)
|
|
533
|
-
|
|
534
|
-
- Node 6 support (Arnaud Lefebvre)
|
|
535
|
-
- More friendly way to specify applications, organisations and addons by name
|
|
536
|
-
instead of ids. The syntax `org_name/app_name` is now deprecated
|
|
537
|
-
(issues #51/#67)
|
|
538
|
-
- Add support for service dependencies with `clever service` and `clever
|
|
539
|
-
published-config` commands (issue #55)
|
|
540
|
-
- Add `--before` and `--after` flags to `clever logs` to fetch logs at a
|
|
541
|
-
specific date/time (issue #49)
|
|
542
|
-
- Let the user create a github-linked application (issue #64)
|
|
543
|
-
- Let the user set a default application (issue #30)
|
|
544
|
-
- `clever addon` commands are now relative to owners, not applications
|
|
545
|
-
- Add `clever open` to open an application in the browser (issue #43)
|
|
546
|
-
- Rename command `list` to `applications` (issue #31)
|
|
547
|
-
- Automatically reconnect websocket when the connection is closed (Arnaud
|
|
548
|
-
Lefebvre)
|
|
549
|
-
- Use mocha to run tests (Arnaud Lefebvre)
|
|
550
|
-
|
|
551
|
-
## 0.4.0 (2016-01-06)
|
|
552
|
-
|
|
553
|
-
- Add `clever restart` command to restart a running application (Clément Delafargue)
|
|
554
|
-
- Add `clever scale` command to edit scalability settinsg (Benjamin Drouard)
|
|
555
|
-
- Forward compatible support for new application creation API (Julien Durillon)
|
|
556
|
-
- Various bug fixes / UX improvements (Clément Delafargue, Marc-Antoine Perennou)
|
|
557
|
-
|
|
558
|
-
## 0.3.4 (2015-10-15)
|
|
559
|
-
|
|
560
|
-
- Support for node v4 (Alexandre Berthaud)
|
|
561
|
-
- Support being called from a directory (Alexandre Berthaud)
|
|
562
|
-
- Clean up autocompletion installation scripts (Marc-Antoine Perennou)
|
|
563
|
-
- Fix environment variables definition
|
|
564
|
-
|
|
565
|
-
## 0.3.3 (2015-09-28)
|
|
566
|
-
|
|
567
|
-
- Fix crash when pushing for the first time
|
|
568
|
-
- Quit at the end of a deployment with the right exit code
|
|
569
|
-
- Display more information when SSH auth fails
|
|
570
|
-
|
|
571
|
-
## 0.3.2 (2015-09-23)
|
|
572
|
-
|
|
573
|
-
- Fix crash when config files were missing
|
|
574
|
-
- More information in clever login
|
|
575
|
-
|
|
576
|
-
## 0.3.1 (2015-09-23)
|
|
577
|
-
|
|
578
|
-
- Fix postinstall script
|
|
579
|
-
|
|
580
|
-
## 0.3.0 (2015-09-23)
|
|
581
|
-
|
|
582
|
-
- Add color to deployment related log lines
|
|
583
|
-
- Rename `log` command to `logs`
|
|
584
|
-
- Return with error or success status at the end of a deployment in `clever deploy -q`
|
|
585
|
-
- Import & export env variables
|
|
586
|
-
- Only deploy if there is new code to push (overridable with `--redeploy`)
|
|
587
|
-
- Allow to force a deployment with `--force` (à la `git push`)
|
|
588
|
-
- List linked applications with `clever list`
|
|
589
|
-
- Rename an addon
|
|
590
|
-
- Easy autocompletion installation
|
|
591
|
-
|
|
592
|
-
## 0.2.3 (2015-08-25)
|
|
593
|
-
|
|
594
|
-
- Autocomplete local branches in `clever deploy`
|
|
595
|
-
- Add `--follow` option to `clever activity`
|
|
596
|
-
- Status information in `clever deploy -q`
|
|
597
|
-
- Addon support
|
|
598
|
-
|
|
599
|
-
## 0.2.2 (2015-08-12)
|
|
600
|
-
|
|
601
|
-
- Display messages when waiting for logs
|
|
602
|
-
- Better error messages when specifying an alias
|
|
603
|
-
- Use provided alias when creating an application
|
|
604
|
-
|
|
605
|
-
## 0.2.1 (2015-07-28)
|
|
606
|
-
|
|
607
|
-
Apply bug fixes from dependencies
|
|
608
|
-
|
|
609
|
-
## 0.2.0 (2015-07-28)
|
|
610
|
-
|
|
611
|
-
Initial public release
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const cliparse = require('cliparse');
|
|
2
|
-
|
|
3
|
-
function getOutputFormatOption (formats = []) {
|
|
4
|
-
const availableFormats = ['human', 'json', ...formats];
|
|
5
|
-
return cliparse.option('format', {
|
|
6
|
-
aliases: ['F'],
|
|
7
|
-
metavar: 'format',
|
|
8
|
-
parser: (format) => {
|
|
9
|
-
return availableFormats.includes(format)
|
|
10
|
-
? cliparse.parsers.success(format)
|
|
11
|
-
: cliparse.parsers.error('The output format must be one of ' + availableFormats.join(', '));
|
|
12
|
-
},
|
|
13
|
-
default: 'human',
|
|
14
|
-
description: `Output format (${availableFormats.join(', ')})`,
|
|
15
|
-
complete () {
|
|
16
|
-
return cliparse.autocomplete.words(availableFormats);
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
module.exports = {
|
|
22
|
-
getOutputFormatOption,
|
|
23
|
-
};
|