@flowcore/cli 2.4.0 → 2.5.1
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 +38 -6
- package/dist/commands/apply.d.ts +1 -0
- package/dist/commands/apply.js +6 -1
- package/oclif.manifest.json +8 -1
- package/package.json +3 -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.1](https://github.com/flowcore-io/flowcore-cli/compare/v2.5.0...v2.5.1) (2024-02-21)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* forced rebuild ([da9de94](https://github.com/flowcore-io/flowcore-cli/commit/da9de9419f41145f5e318557dd6d937e2da4c54d))
|
|
19
|
+
|
|
20
|
+
## [2.5.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.4.0...v2.5.0) (2024-02-21)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* add support for skipping confirmation and profile in resource apply command ([e17228c](https://github.com/flowcore-io/flowcore-cli/commit/e17228c6666998fee8b7bfbb018a37d30e374342))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* 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))
|
|
31
|
+
|
|
13
32
|
## [2.4.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.3.0...v2.4.0) (2024-02-20)
|
|
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.1 linux-x64 node-v20.11.1
|
|
22
22
|
$ flowcore --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ flowcore COMMAND
|
|
@@ -45,6 +45,7 @@ USAGE
|
|
|
45
45
|
* [`flowcore plugins:uninstall PLUGIN...`](#flowcore-pluginsuninstall-plugin-2)
|
|
46
46
|
* [`flowcore plugins update`](#flowcore-plugins-update)
|
|
47
47
|
* [`flowcore scenario apply`](#flowcore-scenario-apply)
|
|
48
|
+
* [`flowcore scenario local`](#flowcore-scenario-local)
|
|
48
49
|
* [`flowcore stream STREAM`](#flowcore-stream-stream)
|
|
49
50
|
* [`flowcore version`](#flowcore-version)
|
|
50
51
|
* [`flowcore whoami`](#flowcore-whoami)
|
|
@@ -55,10 +56,11 @@ Apply a resource manifest against the Flowcore Platform
|
|
|
55
56
|
|
|
56
57
|
```
|
|
57
58
|
USAGE
|
|
58
|
-
$ flowcore apply -f <value> [--profile <value>]
|
|
59
|
+
$ flowcore apply -f <value> [--profile <value>] [-y]
|
|
59
60
|
|
|
60
61
|
FLAGS
|
|
61
62
|
-f, --file=<value>... (required) file to apply
|
|
63
|
+
-y, --yes skip confirmation
|
|
62
64
|
--profile=<value> Specify the configuration profile to use
|
|
63
65
|
|
|
64
66
|
DESCRIPTION
|
|
@@ -68,7 +70,7 @@ EXAMPLES
|
|
|
68
70
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
69
71
|
```
|
|
70
72
|
|
|
71
|
-
_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.1/src/commands/apply.ts)_
|
|
72
74
|
|
|
73
75
|
## `flowcore autocomplete [SHELL]`
|
|
74
76
|
|
|
@@ -178,7 +180,7 @@ EXAMPLES
|
|
|
178
180
|
$ cat <<EOF | flowcore data-core apply -f -
|
|
179
181
|
```
|
|
180
182
|
|
|
181
|
-
_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)_
|
|
182
184
|
|
|
183
185
|
## `flowcore help [COMMANDS]`
|
|
184
186
|
|
|
@@ -530,7 +532,37 @@ EXAMPLES
|
|
|
530
532
|
$ cat <<EOF | flowcore scenario apply -f -
|
|
531
533
|
```
|
|
532
534
|
|
|
533
|
-
_See code: [@flowcore/cli-plugin-scenario](https://github.com/flowcore/flowcore-cli-plugin-scenario/blob/
|
|
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)_
|
|
534
566
|
|
|
535
567
|
## `flowcore stream STREAM`
|
|
536
568
|
|
|
@@ -568,7 +600,7 @@ EXAMPLES
|
|
|
568
600
|
$ flowcore stream https://flowcore.io/<org>/<data core>/<flow type>/[<event type1>,<event type2>,<event type3>].stream -o log -s 3m
|
|
569
601
|
```
|
|
570
602
|
|
|
571
|
-
_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.1/src/commands/stream.ts)_
|
|
572
604
|
|
|
573
605
|
## `flowcore version`
|
|
574
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,6 +13,7 @@ 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);
|
|
@@ -22,7 +23,11 @@ export default class Apply extends BaseCommand {
|
|
|
22
23
|
];
|
|
23
24
|
for (const resource of resources) {
|
|
24
25
|
// eslint-disable-next-line no-await-in-loop
|
|
25
|
-
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
|
+
]);
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
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.1"
|
|
145
152
|
}
|
package/package.json
CHANGED
|
@@ -6,8 +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": "^
|
|
10
|
-
"@flowcore/cli-plugin-scenario": "^
|
|
9
|
+
"@flowcore/cli-plugin-data-core": "^2.0.0",
|
|
10
|
+
"@flowcore/cli-plugin-scenario": "^2.2.0",
|
|
11
11
|
"@flowcore/time-bucket": "^1.1.0",
|
|
12
12
|
"@oclif/core": "^3",
|
|
13
13
|
"@oclif/plugin-autocomplete": "^3.0.2",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"prestart": "npm run build",
|
|
90
90
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
91
91
|
},
|
|
92
|
-
"version": "2.
|
|
92
|
+
"version": "2.5.1",
|
|
93
93
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
94
94
|
"keywords": [
|
|
95
95
|
"flowcore",
|