Skip to content

Commit 8252ba1

Browse files
authored
Merge pull request #21 from Contentstack-Solutions/development
Development
2 parents 4557e00 + 5a35bc1 commit 8252ba1

File tree

9 files changed

+22
-15
lines changed

9 files changed

+22
-15
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ EXAMPLES
8686
$ csdx content-type:audit --alias "management token" --content-type "home_page"
8787
```
8888

89-
_See code: [src/commands/content-type/audit.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/audit.ts)_
89+
_See code: [src/commands/content-type/audit.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/audit.ts)_
9090

9191
## `csdx content-type:compare`
9292

@@ -116,7 +116,7 @@ EXAMPLES
116116
$ csdx content-type:compare --alias "management token" --content-type "home_page" --left # --right #
117117
```
118118

119-
_See code: [src/commands/content-type/compare.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/compare.ts)_
119+
_See code: [src/commands/content-type/compare.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/compare.ts)_
120120

121121
## `csdx content-type:compare-remote`
122122

@@ -138,7 +138,7 @@ EXAMPLES
138138
$ csdx content-type:compare-remote --origin-stack "xxxxxxxxxxxxxxxxxxx" --remote-stack "xxxxxxxxxxxxxxxxxxx" -content-type "home_page"
139139
```
140140

141-
_See code: [src/commands/content-type/compare-remote.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/compare-remote.ts)_
141+
_See code: [src/commands/content-type/compare-remote.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/compare-remote.ts)_
142142

143143
## `csdx content-type:details`
144144

@@ -167,7 +167,7 @@ EXAMPLES
167167
$ csdx content-type:details --alias "management token" --content-type "home_page" --no-path
168168
```
169169

170-
_See code: [src/commands/content-type/details.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/details.ts)_
170+
_See code: [src/commands/content-type/details.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/details.ts)_
171171

172172
## `csdx content-type:diagram`
173173

@@ -202,7 +202,7 @@ EXAMPLES
202202
$ csdx content-type:diagram --alias "management token" --output "content-model.dot" --type "dot"
203203
```
204204

205-
_See code: [src/commands/content-type/diagram.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/diagram.ts)_
205+
_See code: [src/commands/content-type/diagram.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/diagram.ts)_
206206

207207
## `csdx content-type:list`
208208

@@ -231,5 +231,5 @@ EXAMPLES
231231
$ csdx content-type:list --alias "management token" --order modified
232232
```
233233

234-
_See code: [src/commands/content-type/list.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.0/src/commands/content-type/list.ts)_
234+
_See code: [src/commands/content-type/list.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.1.2/src/commands/content-type/list.ts)_
235235
<!-- commandsstop -->

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-content-type",
33
"description": "Retrieve information about Content Types in a Stack.",
4-
"version": "1.1.2",
4+
"version": "1.2.0",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-content-type/issues",
77
"dependencies": {

src/commands/content-type/audit.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ export default class AuditCommand extends Command {
4848
try {
4949
const { flags } = await this.parse(AuditCommand)
5050
this.setup(flags)
51+
5152
this.contentTypeManagementClient = await managementSDKClient({
52-
host: this.cmaHost
53+
host: this.cmaHost,
54+
'X-CS-CLI': this.context?.analyticsInfo
5355
})
5456

5557
const spinner = cliux.loaderV2(Command.RequestDataMessage)

src/commands/content-type/compare-remote.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export default class CompareRemoteCommand extends Command {
4040
const { flags } = await this.parse(CompareRemoteCommand)
4141
this.setup({ alias: undefined, stack: flags['origin-stack'] })
4242
this.contentTypeManagementClient = await managementSDKClient({
43-
host: this.cmaHost
43+
host: this.cmaHost,
44+
'X-CS-CLI': this.context?.analyticsInfo
4445
})
4546

4647
const originStackApi = flags['origin-stack'] as string

src/commands/content-type/compare.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export default class CompareCommand extends Command {
6464
const { flags } = await this.parse(CompareCommand)
6565
this.setup(flags)
6666
this.contentTypeManagementClient = await managementSDKClient({
67-
host: this.cmaHost
67+
host: this.cmaHost,
68+
'X-CS-CLI': this.context?.analyticsInfo
6869
})
6970

7071
if (!flags.left) {

src/commands/content-type/details.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export default class DetailsCommand extends Command {
5858
const { flags } = await this.parse(DetailsCommand)
5959
this.setup(flags)
6060
this.contentTypeManagementClient = await managementSDKClient({
61-
host: this.cmaHost
61+
host: this.cmaHost,
62+
'X-CS-CLI': this.context?.analyticsInfo
6263
})
6364

6465
const spinner = cliux.loaderV2(Command.RequestDataMessage)

src/commands/content-type/diagram.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export default class DiagramCommand extends Command {
7575
try {
7676
const { flags } = await this.parse(DiagramCommand)
7777
this.contentTypeManagementClient = await managementSDKClient({
78-
host: this.cmaHost
78+
host: this.cmaHost,
79+
'X-CS-CLI': this.context?.analyticsInfo
7980
})
8081
this.setup(flags)
8182

src/commands/content-type/list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export default class ListCommand extends Command {
5151
const { flags } = await this.parse(ListCommand)
5252
this.setup(flags)
5353
this.contentTypeManagementClient = await managementSDKClient({
54-
host: this.cmaHost
54+
host: this.cmaHost,
55+
'X-CS-CLI': this.context?.analyticsInfo
5556
})
5657

5758
const spinner = cliux.loaderV2(Command.RequestDataMessage)

0 commit comments

Comments
 (0)