@flowcore/cli 4.8.0 → 4.9.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 +12 -0
- package/README.md +24 -3
- package/dist/commands/info.d.ts +7 -0
- package/dist/commands/info.js +20 -0
- package/oclif.manifest.json +32 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
* added description to start that includes week ([58687a7](https://github.com/flowcore-io/flowcore-cli/commit/58687a7bbb66aaa5d6da26af88e555cbb1e72467))
|
|
12
12
|
|
|
13
|
+
## [4.9.0](https://github.com/flowcore-io/flowcore-cli/compare/v4.8.0...v4.9.0) (2024-10-23)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* added info command for getting CLI configuration info ([5ff908f](https://github.com/flowcore-io/flowcore-cli/commit/5ff908f93a75da69473825a08b90754dd8068fd2))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **configuration:** :rotating_light: fixed linting errors ([86f3a33](https://github.com/flowcore-io/flowcore-cli/commit/86f3a33d5204a86ecee40594a5db9001cb8b2a48))
|
|
24
|
+
|
|
13
25
|
## [4.8.0](https://github.com/flowcore-io/flowcore-cli/compare/v4.7.2...v4.8.0) (2024-10-23)
|
|
14
26
|
|
|
15
27
|
|
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/4.
|
|
21
|
+
@flowcore/cli/4.9.0 linux-x64 node-v20.18.0
|
|
22
22
|
$ flowcore --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ flowcore COMMAND
|
|
@@ -48,6 +48,7 @@ USAGE
|
|
|
48
48
|
* [`flowcore get scenario [SCENARIO]`](#flowcore-get-scenario-scenario)
|
|
49
49
|
* [`flowcore get tenant [NAME]`](#flowcore-get-tenant-name)
|
|
50
50
|
* [`flowcore help [COMMAND]`](#flowcore-help-command)
|
|
51
|
+
* [`flowcore info`](#flowcore-info)
|
|
51
52
|
* [`flowcore login`](#flowcore-login)
|
|
52
53
|
* [`flowcore logs adapter ADAPTER`](#flowcore-logs-adapter-adapter)
|
|
53
54
|
* [`flowcore new bun-service NAME`](#flowcore-new-bun-service-name)
|
|
@@ -97,7 +98,7 @@ EXAMPLES
|
|
|
97
98
|
$ flowcore apply -f ./path/to/manifest.yml
|
|
98
99
|
```
|
|
99
100
|
|
|
100
|
-
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
101
|
+
_See code: [src/commands/apply.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.9.0/src/commands/apply.ts)_
|
|
101
102
|
|
|
102
103
|
## `flowcore auth delete key API_KEY_NAME`
|
|
103
104
|
|
|
@@ -481,7 +482,7 @@ EXAMPLES
|
|
|
481
482
|
cat ./path/to/manifest.yml | flowcore delete -f -
|
|
482
483
|
```
|
|
483
484
|
|
|
484
|
-
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.
|
|
485
|
+
_See code: [src/commands/delete.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.9.0/src/commands/delete.ts)_
|
|
485
486
|
|
|
486
487
|
## `flowcore generate nextjs-entity NAME`
|
|
487
488
|
|
|
@@ -608,6 +609,26 @@ DESCRIPTION
|
|
|
608
609
|
|
|
609
610
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.11/src/commands/help.ts)_
|
|
610
611
|
|
|
612
|
+
## `flowcore info`
|
|
613
|
+
|
|
614
|
+
Get information about the Flowcore CLI and its configuration
|
|
615
|
+
|
|
616
|
+
```
|
|
617
|
+
USAGE
|
|
618
|
+
$ flowcore info [--profile <value>]
|
|
619
|
+
|
|
620
|
+
FLAGS
|
|
621
|
+
--profile=<value> Specify the configuration profile to use
|
|
622
|
+
|
|
623
|
+
DESCRIPTION
|
|
624
|
+
Get information about the Flowcore CLI and its configuration
|
|
625
|
+
|
|
626
|
+
EXAMPLES
|
|
627
|
+
$ flowcore info
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
_See code: [src/commands/info.ts](https://github.com/flowcore-io/flowcore-cli/blob/v4.9.0/src/commands/info.ts)_
|
|
631
|
+
|
|
611
632
|
## `flowcore login`
|
|
612
633
|
|
|
613
634
|
login to the Flowcore Platform
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseCommand } from "@flowcore/cli-plugin-config";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import isSameOrBefore from "dayjs/plugin/isSameOrBefore.js";
|
|
4
|
+
import utc from "dayjs/plugin/utc.js";
|
|
5
|
+
dayjs.extend(utc);
|
|
6
|
+
dayjs.extend(isSameOrBefore);
|
|
7
|
+
export default class Info extends BaseCommand {
|
|
8
|
+
static args = {};
|
|
9
|
+
static description = "Get information about the Flowcore CLI and its configuration";
|
|
10
|
+
static examples = [
|
|
11
|
+
"<%= config.bin %> <%= command.id %>",
|
|
12
|
+
];
|
|
13
|
+
async run() {
|
|
14
|
+
this.logger.info(`Flowcore CLI version: ${this.config.version}`);
|
|
15
|
+
this.logger.info(`Flowcore CLI data directory: ${this.config.dataDir}`);
|
|
16
|
+
this.logger.info(`Flowcore CLI config directory: ${this.config.configDir}`);
|
|
17
|
+
this.logger.info(`Flowcore CLI cache directory: ${this.config.cacheDir}`);
|
|
18
|
+
this.logger.info(`Flowcore CLI npm registry: ${this.config.npmRegistry}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
package/oclif.manifest.json
CHANGED
|
@@ -100,7 +100,38 @@
|
|
|
100
100
|
"commands",
|
|
101
101
|
"delete.js"
|
|
102
102
|
]
|
|
103
|
+
},
|
|
104
|
+
"info": {
|
|
105
|
+
"aliases": [],
|
|
106
|
+
"args": {},
|
|
107
|
+
"description": "Get information about the Flowcore CLI and its configuration",
|
|
108
|
+
"examples": [
|
|
109
|
+
"<%= config.bin %> <%= command.id %>"
|
|
110
|
+
],
|
|
111
|
+
"flags": {
|
|
112
|
+
"profile": {
|
|
113
|
+
"description": "Specify the configuration profile to use",
|
|
114
|
+
"name": "profile",
|
|
115
|
+
"hasDynamicHelp": false,
|
|
116
|
+
"multiple": false,
|
|
117
|
+
"type": "option"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"hasDynamicHelp": false,
|
|
121
|
+
"hiddenAliases": [],
|
|
122
|
+
"id": "info",
|
|
123
|
+
"pluginAlias": "@flowcore/cli",
|
|
124
|
+
"pluginName": "@flowcore/cli",
|
|
125
|
+
"pluginType": "core",
|
|
126
|
+
"strict": true,
|
|
127
|
+
"enableJsonFlag": false,
|
|
128
|
+
"isESM": true,
|
|
129
|
+
"relativePath": [
|
|
130
|
+
"dist",
|
|
131
|
+
"commands",
|
|
132
|
+
"info.js"
|
|
133
|
+
]
|
|
103
134
|
}
|
|
104
135
|
},
|
|
105
|
-
"version": "4.
|
|
136
|
+
"version": "4.9.0"
|
|
106
137
|
}
|
package/package.json
CHANGED
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"prestart": "npm run build",
|
|
113
113
|
"update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
|
|
114
114
|
},
|
|
115
|
-
"version": "4.
|
|
115
|
+
"version": "4.9.0",
|
|
116
116
|
"bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
|
|
117
117
|
"keywords": [
|
|
118
118
|
"flowcore",
|