@flowcore/cli 2.1.0 → 2.1.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 CHANGED
@@ -10,6 +10,13 @@
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.1.1](https://github.com/flowcore-io/flowcore-cli/compare/v2.1.0...v2.1.1) (2024-02-15)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * removed whoami from cli and moved to config plugin, bumped config plugin version ([784ace4](https://github.com/flowcore-io/flowcore-cli/commit/784ace4cfe386f2ead98ccc8bed5d2ec25b01767))
19
+
13
20
  ## [2.1.0](https://github.com/flowcore-io/flowcore-cli/compare/v2.0.1...v2.1.0) (2024-02-15)
14
21
 
15
22
 
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.1.0 linux-x64 node-v20.11.0
21
+ @flowcore/cli/2.1.1 linux-x64 node-v20.11.0
22
22
  $ flowcore --help [COMMAND]
23
23
  USAGE
24
24
  $ flowcore COMMAND
@@ -105,7 +105,7 @@ EXAMPLES
105
105
  $ flowcore config set -l https://auth.flowcore.io/realms/flowcore/.well-known/openid-configuration -c my-client-id -p
106
106
  ```
107
107
 
108
- _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.4/src/commands/config/set.ts)_
108
+ _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.5/src/commands/config/set.ts)_
109
109
 
110
110
  ## `flowcore config show`
111
111
 
@@ -125,7 +125,7 @@ EXAMPLES
125
125
  $ flowcore config show
126
126
  ```
127
127
 
128
- _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.4/src/commands/config/show.ts)_
128
+ _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.5/src/commands/config/show.ts)_
129
129
 
130
130
  ## `flowcore help [COMMANDS]`
131
131
 
@@ -168,7 +168,7 @@ EXAMPLES
168
168
  $ flowcore login --port 8080
169
169
  ```
170
170
 
171
- _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.4/src/commands/login.ts)_
171
+ _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.5/src/commands/login.ts)_
172
172
 
173
173
  ## `flowcore plugins`
174
174
 
@@ -485,7 +485,7 @@ EXAMPLES
485
485
  $ flowcore stream https://flowcore.io/<org>/<data core>/<flow type>/[<event type1>,<event type2>,<event type3>].stream -o log -s 3m
486
486
  ```
487
487
 
488
- _See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.1.0/src/commands/stream.ts)_
488
+ _See code: [src/commands/stream.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.1.1/src/commands/stream.ts)_
489
489
 
490
490
  ## `flowcore version`
491
491
 
@@ -522,5 +522,5 @@ DESCRIPTION
522
522
  Check what user you are logged in as
523
523
  ```
524
524
 
525
- _See code: [src/commands/whoami.ts](https://github.com/flowcore-io/flowcore-cli/blob/v2.1.0/src/commands/whoami.ts)_
525
+ _See code: [@flowcore/cli-plugin-config](https://github.com/flowcore/flowcore-cli-plugin-config/blob/v1.0.5/src/commands/whoami.ts)_
526
526
  <!-- commandsstop -->
@@ -99,35 +99,7 @@
99
99
  "commands",
100
100
  "stream.js"
101
101
  ]
102
- },
103
- "whoami": {
104
- "aliases": [],
105
- "args": {},
106
- "description": "Check what user you are logged in as",
107
- "flags": {
108
- "profile": {
109
- "description": "Specify the configuration profile to use",
110
- "name": "profile",
111
- "hasDynamicHelp": false,
112
- "multiple": false,
113
- "type": "option"
114
- }
115
- },
116
- "hasDynamicHelp": false,
117
- "hiddenAliases": [],
118
- "id": "whoami",
119
- "pluginAlias": "@flowcore/cli",
120
- "pluginName": "@flowcore/cli",
121
- "pluginType": "core",
122
- "strict": true,
123
- "enableJsonFlag": false,
124
- "isESM": true,
125
- "relativePath": [
126
- "dist",
127
- "commands",
128
- "whoami.js"
129
- ]
130
102
  }
131
103
  },
132
- "version": "2.1.0"
104
+ "version": "2.1.1"
133
105
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@datastructures-js/queue": "^4.2.3",
8
- "@flowcore/cli-plugin-config": "^1.0.4",
8
+ "@flowcore/cli-plugin-config": "^1.0.5",
9
9
  "@flowcore/time-bucket": "^1.1.0",
10
10
  "@oclif/core": "^3",
11
11
  "@oclif/plugin-autocomplete": "^3.0.2",
@@ -85,7 +85,7 @@
85
85
  "prestart": "npm run build",
86
86
  "update-schema": "rover graph introspect https://graph.api.staging.flowcore.io/graphql -o schema.gql"
87
87
  },
88
- "version": "2.1.0",
88
+ "version": "2.1.1",
89
89
  "bugs": "https://github.com/flowcore-io/flowcore-cli/issues",
90
90
  "keywords": [
91
91
  "flowcore",
@@ -1,5 +0,0 @@
1
- import { BaseCommand } from "@flowcore/cli-plugin-config";
2
- export default class Whoami extends BaseCommand<typeof Whoami> {
3
- static description: string;
4
- run(): Promise<void>;
5
- }
@@ -1,24 +0,0 @@
1
- import { BaseCommand, LOGIN_CODES, ValidateLogin } from "@flowcore/cli-plugin-config";
2
- export default class Whoami extends BaseCommand {
3
- static description = 'Check what user you are logged in as';
4
- async run() {
5
- const config = this.cliConfiguration.getConfig();
6
- const { auth, login } = config;
7
- if (!login.url) {
8
- this.error("No login url configured");
9
- }
10
- if (!auth) {
11
- this.error("Not logged in");
12
- }
13
- const validator = new ValidateLogin(login.url);
14
- const result = await validator.validate(config, this.cliConfiguration);
15
- if (result.status === LOGIN_CODES.LOGIN_SUCCESS) {
16
- this.log(`Logged in as ${result.name} (${result.flowcore_user_id})`);
17
- return;
18
- }
19
- if (result.status === LOGIN_CODES.LOGIN_EXPIRED) {
20
- this.error("Login expired, please login again");
21
- }
22
- this.error("Not logged in");
23
- }
24
- }