@flowcore/cli 2.3.0 → 2.5.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 +19 -0
- package/README.md +68 -5
- package/dist/commands/apply.d.ts +1 -0
- package/dist/commands/apply.js +7 -1
- package/oclif.manifest.json +8 -1
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
* added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
|
|
12
12
|
|
|
13
|
+
## [2.5.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.4.0...v2.5.0) (2024-02-21)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add support for skipping confirmation and profile in resource apply command ([e17228c](https://github.com/flowcore-io/flowcore-cli/commit/e17228c6666998fee8b7bfbb018a37d30e374342))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* update versions of @flowcore/cli-plugin-data-core and @flowcore/cli-plugin-scenario to 2.0.0 and 2.1.0 respectively ([aa82656](https://github.com/flowcore-io/flowcore-cli/commit/aa826569e7eac67b9fe8c76acfe45b4b1c6b0f73))
|
|
24
|
+
|
|
25
|
+
## [2.4.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.3.0...v2.4.0) (2024-02-20)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* update flowcore CLI version to 2.3.0 and add new command 'flowcore scenario apply' ([869ec7f](https://github.com/flowcore-io/flowcore-cli/commit/869ec7f848e8a731a9fc08877e1d272d07a59294))
|
|
31
|
+
|
|
13
32
|
## [2.3.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.2.2...v2.3.0) (2024-02-19)
|
|
14
33
|
|
|
15
34
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @flowcore/cli
|
|
|
18
18
|
$ flowcore COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ flowcore (--version)
|
|
21
|
-
@flowcore/cli/2.
|
|
21
|
+
@flowcore/cli/2.5.0 linux-x64 node-v20.11.1
|
|
22
22
|
$ flowcore --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ flowcore COMMAND
|
|
@@ -44,6 +44,8 @@ USAGE
|
|
|
44
44
|
* [`flowcore plugins:uninstall PLUGIN...`](#flowcore-pluginsuninstall-plugin-1)
|
|
45
45
|
* [`flowcore plugins:uninstall PLUGIN...`](#flowcore-pluginsuninstall-plugin-2)
|
|
46
46
|
* [`flowcore plugins update`](#flowcore-plugins-update)
|
|
47
|
+
* [`flowcore scenario apply`](#flowcore-scenario-apply)
|
|
48
|
+
* [`flowcore scenario local`](#flowcore-scenario-local)
|
|
47
49
|
* [`flowcore stream STREAM`](#flowcore-stream-stream)
|
|
48
50
|
* [`flowcore version`](#flowcore-version)
|
|
49
51
|
* [`flowcore whoami`](#flowcore-whoami)
|
|
@@ -54,10 +56,11 @@ Apply a resource manifest against the Flowcore Platform
|
|
|
54
56
|
|
|
55
57
|
```
|
|
56
58
|
USAGE
|
|
57
|
-
$ flowcore apply -f <value> [--profile <value>]
|
|
59
|
+
$ flowcore apply -f <value> [--profile <value>] [-y]
|
|
58
60
|
|
|
59
61
|
FLAGS
|
|
60
62
|
-f, --file=<value>... (required) file to apply
|
|
63
|
+
-y, --yes skip confirmation
|
|
61
64
|
--profile=<value> Specify the configuration profile to use
|
|
62
65
|
|
|
63
66
|
DESCRIPTION
|
|
@@ -67,7 +70,7 @@ EXAMPLES
|
|
|
67
70
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
68
71
|
```
|
|
69
72
|
|
|
70
|
-
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.
|
|
73
|
+
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.5.0/src/commands/apply.ts)_
|
|
71
74
|
|
|
72
75
|
## `flowcore autocomplete [SHELL]`
|
|
73
76
|
|
|
@@ -177,7 +180,7 @@ EXAMPLES
|
|
|
177
180
|
$ cat <<EOF | flowcore data-core apply -f -
|
|
178
181
|
```
|
|
179
182
|
|
|
180
|
-
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/
|
|
183
|
+
_See code: [@flowcore/cli-plugin-data-core](https://github.com/flowcore/flowcore-cli-data-core/blob/v2.0.0/src/commands/data-core/apply.ts)_
|
|
181
184
|
|
|
182
185
|
## `flowcore help [COMMANDS]`
|
|
183
186
|
|
|
@@ -501,6 +504,66 @@ DESCRIPTION
|
|
|
501
504
|
|
|
502
505
|
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.2/src/commands/plugins/update.ts)_
|
|
503
506
|
|
|
507
|
+
## `flowcore scenario apply`
|
|
508
|
+
|
|
509
|
+
Apply a manifest configuration for a Scenario to the Flowcore Platform
|
|
510
|
+
|
|
511
|
+
```
|
|
512
|
+
USAGE
|
|
513
|
+
$ flowcore scenario apply -f <value> [--profile <value>] [-d] [-n <value>] [-t <value>] [-y]
|
|
514
|
+
|
|
515
|
+
FLAGS
|
|
516
|
+
-d, --[no-]deploy deploy the scenario after applying
|
|
517
|
+
-f, --file=<value>... (required) file to apply
|
|
518
|
+
-n, --name=<value> name of the scenario to apply
|
|
519
|
+
-t, --tenant=<value> tenant to apply the scenario to, this is the org for your organization, it can be seen in the
|
|
520
|
+
url when accessing your organization
|
|
521
|
+
-y, --yes skip confirmation
|
|
522
|
+
--profile=<value> Specify the configuration profile to use
|
|
523
|
+
|
|
524
|
+
DESCRIPTION
|
|
525
|
+
Apply a manifest configuration for a Scenario to the Flowcore Platform
|
|
526
|
+
|
|
527
|
+
EXAMPLES
|
|
528
|
+
$ flowcore scenario apply -t flowcore -f example.yaml
|
|
529
|
+
|
|
530
|
+
$ flowcore scenario apply -t flowcore -n scenario-name -f example.yaml
|
|
531
|
+
|
|
532
|
+
$ cat <<EOF | flowcore scenario apply -f -
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v2.2.0/src/commands/scenario/apply.ts)_
|
|
536
|
+
|
|
537
|
+
## `flowcore scenario local`
|
|
538
|
+
|
|
539
|
+
Spin up local stream threads based on a scenario manifest
|
|
540
|
+
|
|
541
|
+
```
|
|
542
|
+
USAGE
|
|
543
|
+
$ flowcore scenario local -e <value> -f <value> [--profile <value>] [-m http] [-c] [-s <value>] [-t <value>] [-y]
|
|
544
|
+
|
|
545
|
+
FLAGS
|
|
546
|
+
-c, --scan Scan the full time range
|
|
547
|
+
-e, --endpoint=<value> (required) stream endpoint
|
|
548
|
+
-f, --file=<value>... (required) file to apply
|
|
549
|
+
-m, --mode=<option> [default: http] stream mode
|
|
550
|
+
<options: http>
|
|
551
|
+
-s, --start=<value> Start time bucket to stream from, example: (1y, 1m, 1w, 1d, 1h)
|
|
552
|
+
-t, --timeout=<value> [default: 5000] Timeout in milliseconds to wait for a response from the destination
|
|
553
|
+
-y, --yes skip confirmation
|
|
554
|
+
--profile=<value> Specify the configuration profile to use
|
|
555
|
+
|
|
556
|
+
DESCRIPTION
|
|
557
|
+
Spin up local stream threads based on a scenario manifest
|
|
558
|
+
|
|
559
|
+
EXAMPLES
|
|
560
|
+
$ flowcore scenario local -f example.yaml
|
|
561
|
+
|
|
562
|
+
$ cat <<EOF | flowcore scenario local -f -
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/v2.2.0/src/commands/scenario/local.ts)_
|
|
566
|
+
|
|
504
567
|
## `flowcore stream STREAM`
|
|
505
568
|
|
|
506
569
|
Stream events from a datacore running on the Flowcore Platform
|
|
@@ -537,7 +600,7 @@ EXAMPLES
|
|
|
537
600
|
$ flowcore stream https://flowcore.io/<org>/<data core>/<flow type>/[<event type1>,<event type2>,<event type3>].stream -o log -s 3m
|
|
538
601
|
```
|
|
539
602
|
|
|
540
|
-
_See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.
|
|
603
|
+
_See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.5.0/src/commands/stream.ts)_
|
|
541
604
|
|
|
542
605
|
## `flowcore version`
|
|
543
606
|
|
package/dist/commands/apply.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export default class Apply extends BaseCommand<typeof Apply> {
|
|
|
5
5
|
static examples: string[];
|
|
6
6
|
static flags: {
|
|
7
7
|
file: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
8
|
+
yes: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
8
9
|
};
|
|
9
10
|
run(): Promise<void>;
|
|
10
11
|
}
|
package/dist/commands/apply.js
CHANGED
|
@@ -13,15 +13,21 @@ export default class Apply extends BaseCommand {
|
|
|
13
13
|
];
|
|
14
14
|
static flags = {
|
|
15
15
|
file: Flags.string({ char: 'f', description: 'file to apply', multiple: true, required: true }),
|
|
16
|
+
yes: Flags.boolean({ char: 'y', description: 'skip confirmation' }),
|
|
16
17
|
};
|
|
17
18
|
async run() {
|
|
18
19
|
const { flags } = await this.parse(Apply);
|
|
19
20
|
const resources = [
|
|
20
21
|
"data-core",
|
|
22
|
+
"scenario",
|
|
21
23
|
];
|
|
22
24
|
for (const resource of resources) {
|
|
23
25
|
// eslint-disable-next-line no-await-in-loop
|
|
24
|
-
await this.config.runCommand(`${resource}:apply`,
|
|
26
|
+
await this.config.runCommand(`${resource}:apply`, [
|
|
27
|
+
...flags.file.map((file) => `--file=${file}`),
|
|
28
|
+
...flags.profile ? `--profile=${flags.profile}` : [],
|
|
29
|
+
...flags.yes ? ['--yes'] : []
|
|
30
|
+
]);
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -23,6 +23,13 @@
|
|
|
23
23
|
"hasDynamicHelp": false,
|
|
24
24
|
"multiple": true,
|
|
25
25
|
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"yes": {
|
|
28
|
+
"char": "y",
|
|
29
|
+
"description": "skip confirmation",
|
|
30
|
+
"name": "yes",
|
|
31
|
+
"allowNo": false,
|
|
32
|
+
"type": "boolean"
|
|
26
33
|
}
|
|
27
34
|
},
|
|
28
35
|
"hasDynamicHelp": false,
|
|
@@ -141,5 +148,5 @@
|
|
|
141
148
|
]
|
|
142
149
|
}
|
|
143
150
|
},
|
|
144
|
-
"version": "2.
|
|
151
|
+
"version": "2.5.0"
|
|
145
152
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@datastructures-js/queue": "^4.2.3",
|
|
8
8
|
"@flowcore/cli-plugin-config": "^1.0.5",
|
|
9
|
-
"@flowcore/cli-plugin-data-core": "^
|
|
9
|
+
"@flowcore/cli-plugin-data-core": "^2.0.0",
|
|
10
|
+
"@flowcore/cli-plugin-scenario": "^2.2.0",
|
|
10
11
|
"@flowcore/time-bucket": "^1.1.0",
|
|
11
12
|
"@oclif/core": "^3",
|
|
12
13
|
"@oclif/plugin-autocomplete": "^3.0.2",
|
|
@@ -69,7 +70,8 @@
|
|
|
69
70
|
"@oclif/plugin-autocomplete",
|
|
70
71
|
"@oclif/plugin-not-found",
|
|
71
72
|
"@flowcore/cli-plugin-config",
|
|
72
|
-
"@flowcore/cli-plugin-data-core"
|
|
73
|
+
"@flowcore/cli-plugin-data-core",
|
|
74
|
+
"@flowcore/cli-plugin-scenario"
|
|
73
75
|
],
|
|
74
76
|
"topicSeparator": " "
|
|
75
77
|
},
|
|
@@ -87,7 +89,7 @@
|
|
|
87
89
|
"prestart": "npm run build",
|
|
88
90
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
89
91
|
},
|
|
90
|
-
"version": "2.
|
|
92
|
+
"version": "2.5.0",
|
|
91
93
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
92
94
|
"keywords": [
|
|
93
95
|
"flowcore",
|