clever-tools 3.8.0 → 3.8.2
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 +1 -1
- package/bin/clever.js +6 -7
- package/package.json +1 -1
- package/src/command-options.js +1 -1
- package/src/commands/addon.js +1 -1
- package/src/commands/drain.js +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ We also distribute binaries and packages for multiple systems and tools:
|
|
|
27
27
|
* [Chocolatey](docs/setup-systems.md#chocolatey)
|
|
28
28
|
* [Binary (.zip)](docs/setup-systems.md#binary-zip)
|
|
29
29
|
* [Docker](docs/setup-systems.md#docker)
|
|
30
|
-
* [Nix](docs/setup-systems.md#nix-package-manager)
|
|
30
|
+
* [Nix package manager](docs/setup-systems.md#nix-package-manager)
|
|
31
31
|
|
|
32
32
|
## Enabling autocompletion
|
|
33
33
|
|
package/bin/clever.js
CHANGED
|
@@ -169,7 +169,7 @@ function run () {
|
|
|
169
169
|
metavar: 'after',
|
|
170
170
|
aliases: ['since'],
|
|
171
171
|
parser: Parsers.date,
|
|
172
|
-
description: 'Fetch logs after this date/time (ISO8601)',
|
|
172
|
+
description: 'Fetch logs after this date/time (ISO8601 date, positive number in seconds or duration, e.g.: 1h)',
|
|
173
173
|
}),
|
|
174
174
|
aliasCreation: cliparse.option('alias', {
|
|
175
175
|
aliases: ['a'],
|
|
@@ -190,7 +190,7 @@ function run () {
|
|
|
190
190
|
metavar: 'before',
|
|
191
191
|
aliases: ['until'],
|
|
192
192
|
parser: Parsers.date,
|
|
193
|
-
description: 'Fetch logs before this date/time (ISO8601 date
|
|
193
|
+
description: 'Fetch logs before this date/time (ISO8601 date, positive number in seconds or duration, e.g.: 1h)',
|
|
194
194
|
}),
|
|
195
195
|
branch: cliparse.option('branch', {
|
|
196
196
|
aliases: ['b'],
|
|
@@ -417,8 +417,7 @@ function run () {
|
|
|
417
417
|
drainIndexPrefix: cliparse.option('index-prefix', {
|
|
418
418
|
aliases: ['i'],
|
|
419
419
|
metavar: 'index_prefix',
|
|
420
|
-
description: '(ElasticSearch drains)
|
|
421
|
-
default: 'logstash-<YYYY-MM-DD>',
|
|
420
|
+
description: '(ElasticSearch drains) optional index prefix. `logstash` value is used if not set',
|
|
422
421
|
}),
|
|
423
422
|
drainSDParameters: cliparse.option('sd-params', {
|
|
424
423
|
aliases: ['s'],
|
|
@@ -702,7 +701,7 @@ function run () {
|
|
|
702
701
|
const appCreateCommand = cliparse.command('create', {
|
|
703
702
|
description: 'Create an application',
|
|
704
703
|
args: [args.appNameCreation],
|
|
705
|
-
options: [opts.instanceType, opts.orgaIdOrName, opts.aliasCreation, opts.region, opts.github, opts.
|
|
704
|
+
options: [opts.instanceType, opts.orgaIdOrName, opts.aliasCreation, opts.region, opts.github, opts.taskCommand, opts.humanJsonOutputFormat],
|
|
706
705
|
}, create('create'));
|
|
707
706
|
|
|
708
707
|
// CURL COMMAND
|
|
@@ -765,7 +764,7 @@ function run () {
|
|
|
765
764
|
const drainCreateCommand = cliparse.command('create', {
|
|
766
765
|
description: 'Create a drain',
|
|
767
766
|
args: [args.drainType, args.drainUrl],
|
|
768
|
-
options: [opts.
|
|
767
|
+
options: [opts.drainUsername, opts.drainPassword, opts.drainAPIKey, opts.drainIndexPrefix, opts.drainSDParameters],
|
|
769
768
|
}, drain('create'));
|
|
770
769
|
const drainRemoveCommand = cliparse.command('remove', {
|
|
771
770
|
description: 'Remove a drain',
|
|
@@ -1174,7 +1173,7 @@ function run () {
|
|
|
1174
1173
|
name: 'clever',
|
|
1175
1174
|
description: 'CLI tool to manage Clever Cloud\'s data and products',
|
|
1176
1175
|
version: pkg.version,
|
|
1177
|
-
options: [opts.color, opts.
|
|
1176
|
+
options: [opts.color, opts.updateNotifier, opts.verbose],
|
|
1178
1177
|
helpCommand: false,
|
|
1179
1178
|
commands,
|
|
1180
1179
|
});
|
package/package.json
CHANGED
package/src/command-options.js
CHANGED
|
@@ -40,7 +40,7 @@ function getExitOnOption () {
|
|
|
40
40
|
const availableExitOn = ['deploy-start', 'deploy-end', 'never'];
|
|
41
41
|
return cliparse.option('exit-on', {
|
|
42
42
|
aliases: ['e'],
|
|
43
|
-
metavar: '
|
|
43
|
+
metavar: 'step',
|
|
44
44
|
parser: (exitOnStrategy) => {
|
|
45
45
|
return availableExitOn.includes(exitOnStrategy)
|
|
46
46
|
? cliparse.parsers.success(exitOnStrategy)
|
package/src/commands/addon.js
CHANGED
|
@@ -103,7 +103,7 @@ function displayAddon (format, addon, providerName, message) {
|
|
|
103
103
|
|
|
104
104
|
const WIP_PROVIDERS = {
|
|
105
105
|
keycloak: {
|
|
106
|
-
|
|
106
|
+
status: 'alpha',
|
|
107
107
|
postCreateInstructions: [
|
|
108
108
|
'Learn more about Keycloak on Clever Cloud: https://developers.clever-cloud.com/doc/addons/keycloak/',
|
|
109
109
|
].join('\n'),
|
package/src/commands/drain.js
CHANGED
|
@@ -43,7 +43,7 @@ async function list (params) {
|
|
|
43
43
|
|
|
44
44
|
let drainView = `${id} -> ${state} for ${url} as ${drainType}`;
|
|
45
45
|
if (indexPrefix != null) {
|
|
46
|
-
drainView += `, index: '${indexPrefix}
|
|
46
|
+
drainView += `, custom index: '${indexPrefix}-YYYY-MM-DD'`;
|
|
47
47
|
}
|
|
48
48
|
if (structuredDataParameters != null) {
|
|
49
49
|
drainView += `, sd-params: '${structuredDataParameters}'`;
|