Skip to content

Commit 8736267

Browse files
authored
Merge pull request #104 from cloudgraphdev/beta
Release: 0.25.0
2 parents 37f0c22 + 287e017 commit 8736267

File tree

5 files changed

+47
-18
lines changed

5 files changed

+47
-18
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# [0.25.0-beta.1](https://github.com/cloudgraphdev/cli/compare/0.24.0...0.25.0-beta.1) (2022-12-08)
2+
3+
4+
### Features
5+
6+
* **cli:** convert ASTNode to string since now providers return raw schemas instead of strings ([55e6468](https://github.com/cloudgraphdev/cli/commit/55e646870e222c90a6218e2701d53ffe864a5c99))
7+
* **cli:** handle provider schema type ([074b03e](https://github.com/cloudgraphdev/cli/commit/074b03ef1d1d7e23ccb01c234050741311aee9d6))
8+
* **cli:** Updated sdk version ([1f02b6c](https://github.com/cloudgraphdev/cli/commit/1f02b6c743bca6cbbdba982c5980b174ca2624be))
9+
10+
# [0.25.0-alpha.1](https://github.com/cloudgraphdev/cli/compare/0.24.0...0.25.0-alpha.1) (2022-12-08)
11+
12+
13+
### Features
14+
15+
* **cli:** convert ASTNode to string since now providers return raw schemas instead of strings ([55e6468](https://github.com/cloudgraphdev/cli/commit/55e646870e222c90a6218e2701d53ffe864a5c99))
16+
* **cli:** handle provider schema type ([074b03e](https://github.com/cloudgraphdev/cli/commit/074b03ef1d1d7e23ccb01c234050741311aee9d6))
17+
* **cli:** Updated sdk version ([1f02b6c](https://github.com/cloudgraphdev/cli/commit/1f02b6c743bca6cbbdba982c5980b174ca2624be))
18+
119
# [0.24.0](https://github.com/cloudgraphdev/cli/compare/0.23.1...0.24.0) (2022-08-05)
220

321

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ EXAMPLES
14501450
$ cg init aws -r [Specify resources to crawl]
14511451
```
14521452

1453-
_See code: [src/commands/init.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/init.ts)_
1453+
_See code: [src/commands/init.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/init.ts)_
14541454

14551455
## `cg launch [PROVIDER]`
14561456

@@ -1482,7 +1482,7 @@ EXAMPLES
14821482
$ cg launch
14831483
```
14841484

1485-
_See code: [src/commands/launch.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/launch.ts)_
1485+
_See code: [src/commands/launch.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/launch.ts)_
14861486

14871487
## `cg load [PROVIDER]`
14881488

@@ -1516,7 +1516,7 @@ EXAMPLES
15161516
$ cg load aws [Load data for AWS]
15171517
```
15181518

1519-
_See code: [src/commands/load.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/load.ts)_
1519+
_See code: [src/commands/load.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/load.ts)_
15201520

15211521
## `cg policy [PROVIDER]`
15221522

@@ -1545,7 +1545,7 @@ DESCRIPTION
15451545
Commands to manage policy pack modules, run $ cg policy for more info.
15461546
```
15471547

1548-
_See code: [src/commands/policy/index.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/policy/index.ts)_
1548+
_See code: [src/commands/policy/index.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/policy/index.ts)_
15491549

15501550
## `cg policy add [PROVIDER]`
15511551

@@ -1758,7 +1758,7 @@ DESCRIPTION
17581758
Commands to manage provider modules, run $ cg provider for more info.
17591759
```
17601760

1761-
_See code: [src/commands/provider/index.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/provider/index.ts)_
1761+
_See code: [src/commands/provider/index.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/provider/index.ts)_
17621762

17631763
## `cg provider add [PROVIDER]`
17641764

@@ -1980,7 +1980,7 @@ EXAMPLES
19801980
$ cg scan aws --no-serve [Do not start the query engine]
19811981
```
19821982

1983-
_See code: [src/commands/scan.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/scan.ts)_
1983+
_See code: [src/commands/scan.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/scan.ts)_
19841984

19851985
## `cg serve [PROVIDER]`
19861986

@@ -2012,7 +2012,7 @@ EXAMPLES
20122012
$ cg serve
20132013
```
20142014

2015-
_See code: [src/commands/serve.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/serve.ts)_
2015+
_See code: [src/commands/serve.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/serve.ts)_
20162016

20172017
## `cg teardown [PROVIDER]`
20182018

@@ -2034,7 +2034,7 @@ EXAMPLES
20342034
$ cg teardown --delete-image
20352035
```
20362036

2037-
_See code: [src/commands/teardown.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/teardown.ts)_
2037+
_See code: [src/commands/teardown.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/teardown.ts)_
20382038

20392039
## `cg update [PROVIDER]`
20402040

@@ -2070,5 +2070,5 @@ EXAMPLES
20702070
$ cg update
20712071
```
20722072

2073-
_See code: [src/commands/update.ts](https://github.com/cloudgraphdev/cli/blob/v0.24.0/src/commands/update.ts)_
2073+
_See code: [src/commands/update.ts](https://github.com/cloudgraphdev/cli/blob/v0.25.0-beta.1/src/commands/update.ts)_
20742074
<!-- commandsstop -->

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@cloudgraph/cli",
33
"description": "Scan your cloud infrastructure data and query it with GraphQL",
4-
"version": "0.24.0",
4+
"version": "0.25.0-beta.1",
55
"author": "AutoCloud",
66
"license": "MPL-2.0",
77
"publishConfig": {
@@ -15,7 +15,7 @@
1515
},
1616
"bugs": "https://github.com/cloudgraphdev/cli/issues",
1717
"dependencies": {
18-
"@cloudgraph/sdk": "^0.21.1",
18+
"@cloudgraph/sdk": "^0.22.0",
1919
"@graphql-tools/load-files": "^6.3.2",
2020
"@graphql-tools/merge": "^8.2.0",
2121
"@oclif/core": "1.6.1",

src/commands/scan.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import chalk from 'chalk'
22
import fs from 'fs'
33
import path from 'path'
4-
import { Opts, pluginMap, PluginType, ProviderData, StorageEngine } from '@cloudgraph/sdk'
4+
import {
5+
Opts,
6+
pluginMap,
7+
PluginType,
8+
ProviderData,
9+
StorageEngine,
10+
} from '@cloudgraph/sdk'
511
import { range } from 'lodash'
12+
import { print } from 'graphql'
613

714
import Command from './base'
815
import { fileUtils } from '../utils'
@@ -217,7 +224,11 @@ export default class Scan extends Command {
217224
provider
218225
)}`
219226
)
220-
const providerSchema: string = providerClient.getSchema()
227+
228+
const rawSchema = providerClient.getSchema()
229+
const providerSchema: string =
230+
typeof rawSchema === 'object' ? print(rawSchema) : rawSchema
231+
221232
if (!providerSchema) {
222233
this.logger.warn(`No schema found for ${provider}, moving on`)
223234
continue // eslint-disable-line no-continue
@@ -305,7 +316,7 @@ export default class Scan extends Command {
305316
isRunning: storageRunning,
306317
engine: storageEngine,
307318
},
308-
providerData: allProviderData
319+
providerData: allProviderData,
309320
})
310321
}
311322

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@
379379
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
380380
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
381381

382-
"@cloudgraph/sdk@^0.21.1":
383-
version "0.21.1"
384-
resolved "https://registry.yarnpkg.com/@cloudgraph/sdk/-/sdk-0.21.1.tgz#bb4c0243d73bbc98c4bd0c7d04379e0fac309b2d"
385-
integrity sha512-CHNIwkcfuNXify4nAp3wFYTW7sRGhzTu1haolQmihx+19mEc7WJuGV9wtZBlCIL+bctm8FoIVWDPShKuLHseWA==
382+
"@cloudgraph/sdk@^0.22.0":
383+
version "0.22.0"
384+
resolved "https://registry.yarnpkg.com/@cloudgraph/sdk/-/sdk-0.22.0.tgz#c2a4e817a70ae9b123e0fcd401d55f79e24386ab"
385+
integrity sha512-EJ7vLgrMRh52tOH14TKHgOI62BYy9ZH4WuEhcVr8S8RDnLxBO1XsXOKKjIsE+SmawMBzck8qxiEKttppalhJ8g==
386386
dependencies:
387387
"@graphql-tools/load-files" "^6.5.3"
388388
"@graphql-tools/merge" "^8.2.1"

0 commit comments

Comments
 (0)