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