@hesed/conni 0.4.0 → 0.5.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/README.md CHANGED
@@ -26,7 +26,7 @@ $ npm install -g @hesed/conni
26
26
  $ conni COMMAND
27
27
  running command...
28
28
  $ conni (--version)
29
- @hesed/conni/0.4.0 darwin-arm64 node-v22.14.0
29
+ @hesed/conni/0.5.0 linux-x64 node-v24.14.1
30
30
  $ conni --help [COMMAND]
31
31
  USAGE
32
32
  $ conni COMMAND
@@ -59,12 +59,12 @@ Add Atlassian authentication
59
59
 
60
60
  ```
61
61
  USAGE
62
- $ conni conni auth add [--json] [-e <value>] [-t <value>] [-u <value>]
62
+ $ conni conni auth add -e <value> -t <value> -u <value> [--json]
63
63
 
64
64
  FLAGS
65
- -e, --email=<value> Account email:
66
- -t, --token=<value> API Token:
67
- -u, --url=<value> Atlassian URL (start with https://):
65
+ -e, --email=<value> (required) Account email:
66
+ -t, --token=<value> (required) API Token:
67
+ -u, --url=<value> (required) Atlassian URL (start with https://):
68
68
 
69
69
  GLOBAL FLAGS
70
70
  --json Format output as json.
@@ -76,7 +76,7 @@ EXAMPLES
76
76
  $ conni conni auth add
77
77
  ```
78
78
 
79
- _See code: [src/commands/conni/auth/add.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/auth/add.ts)_
79
+ _See code: [src/commands/conni/auth/add.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/auth/add.ts)_
80
80
 
81
81
  ## `conni conni auth test`
82
82
 
@@ -96,7 +96,7 @@ EXAMPLES
96
96
  $ conni conni auth test
97
97
  ```
98
98
 
99
- _See code: [src/commands/conni/auth/test.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/auth/test.ts)_
99
+ _See code: [src/commands/conni/auth/test.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/auth/test.ts)_
100
100
 
101
101
  ## `conni conni auth update`
102
102
 
@@ -104,12 +104,12 @@ Update existing authentication
104
104
 
105
105
  ```
106
106
  USAGE
107
- $ conni conni auth update [--json] [-e <value>] [-t <value>] [-u <value>]
107
+ $ conni conni auth update -e <value> -t <value> -u <value> [--json]
108
108
 
109
109
  FLAGS
110
- -e, --email=<value> Account email
111
- -t, --token=<value> API Token
112
- -u, --url=<value> Atlassian instance URL (start with https://)
110
+ -e, --email=<value> (required) Account email
111
+ -t, --token=<value> (required) API Token
112
+ -u, --url=<value> (required) Atlassian instance URL (start with https://)
113
113
 
114
114
  GLOBAL FLAGS
115
115
  --json Format output as json.
@@ -121,7 +121,7 @@ EXAMPLES
121
121
  $ conni conni auth update
122
122
  ```
123
123
 
124
- _See code: [src/commands/conni/auth/update.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/auth/update.ts)_
124
+ _See code: [src/commands/conni/auth/update.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/auth/update.ts)_
125
125
 
126
126
  ## `conni conni content attachment PAGEID FILE`
127
127
 
@@ -145,7 +145,7 @@ EXAMPLES
145
145
  $ conni conni content attachment 123456 ./document.pdf
146
146
  ```
147
147
 
148
- _See code: [src/commands/conni/content/attachment.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/attachment.ts)_
148
+ _See code: [src/commands/conni/content/attachment.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/attachment.ts)_
149
149
 
150
150
  ## `conni conni content attachment-download ATTACHMENTID [OUTPUTPATH]`
151
151
 
@@ -171,7 +171,7 @@ EXAMPLES
171
171
  $ conni conni content attachment-download att12345 ./document.pdf
172
172
  ```
173
173
 
174
- _See code: [src/commands/conni/content/attachment-download.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/attachment-download.ts)_
174
+ _See code: [src/commands/conni/content/attachment-download.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/attachment-download.ts)_
175
175
 
176
176
  ## `conni conni content comment PAGEID BODY`
177
177
 
@@ -204,7 +204,7 @@ EXAMPLES
204
204
  $ conni conni content comment 123456 "$(cat content.md)"
205
205
  ```
206
206
 
207
- _See code: [src/commands/conni/content/comment.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/comment.ts)_
207
+ _See code: [src/commands/conni/content/comment.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/comment.ts)_
208
208
 
209
209
  ## `conni conni content comment-delete ID`
210
210
 
@@ -227,7 +227,7 @@ EXAMPLES
227
227
  $ conni conni content comment-delete 1544224770
228
228
  ```
229
229
 
230
- _See code: [src/commands/conni/content/comment-delete.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/comment-delete.ts)_
230
+ _See code: [src/commands/conni/content/comment-delete.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/comment-delete.ts)_
231
231
 
232
232
  ## `conni conni content comment-update ID BODY`
233
233
 
@@ -260,7 +260,7 @@ EXAMPLES
260
260
  $ conni conni content comment-update 1544224770 "$(cat content.md)"
261
261
  ```
262
262
 
263
- _See code: [src/commands/conni/content/comment-update.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/comment-update.ts)_
263
+ _See code: [src/commands/conni/content/comment-update.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/comment-update.ts)_
264
264
 
265
265
  ## `conni conni content create`
266
266
 
@@ -268,11 +268,12 @@ Create a new Confluence page
268
268
 
269
269
  ```
270
270
  USAGE
271
- $ conni conni content create --fields <value>... [--attach <value>...] [--toon]
271
+ $ conni conni content create --fields <value>... [--attach <value>...] [--full-width] [--toon]
272
272
 
273
273
  FLAGS
274
274
  --attach=<value>... Path to a file to upload and embed inline (can be used multiple times)
275
- --fields=<value>... (required) Content fields in key=value format
275
+ --fields=<value>... (required) Minimum fields required: spaceKey, title & body
276
+ --full-width Set page appearance to full-width
276
277
  --toon Format output as toon
277
278
 
278
279
  DESCRIPTION
@@ -297,13 +298,15 @@ EXAMPLES
297
298
 
298
299
  $ conni conni content create --fields spaceKey="DEV" title="Page with files" body="Content" --attach ./image.png --attach ./report.pdf
299
300
 
301
+ $ conni conni content create --fields spaceKey="DEV" title="Storage page" body=@storage.xml representation=storage --full-width
302
+
300
303
  FLAG DESCRIPTIONS
301
- --fields=<value>... Content fields in key=value format
304
+ --fields=<value>... Minimum fields required: spaceKey, title & body
302
305
 
303
- Minimum fields required: spaceKey, title & body
306
+ Content fields in key=value format. Use @file to read value from a file (e.g. body=@content.xml)
304
307
  ```
305
308
 
306
- _See code: [src/commands/conni/content/create.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/create.ts)_
309
+ _See code: [src/commands/conni/content/create.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/create.ts)_
307
310
 
308
311
  ## `conni conni content delete PAGEID`
309
312
 
@@ -326,7 +329,7 @@ EXAMPLES
326
329
  $ conni conni content delete 1543634992
327
330
  ```
328
331
 
329
- _See code: [src/commands/conni/content/delete.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/delete.ts)_
332
+ _See code: [src/commands/conni/content/delete.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/delete.ts)_
330
333
 
331
334
  ## `conni conni content get PAGEID`
332
335
 
@@ -349,7 +352,7 @@ EXAMPLES
349
352
  $ conni conni content get 1544060948
350
353
  ```
351
354
 
352
- _See code: [src/commands/conni/content/get.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/get.ts)_
355
+ _See code: [src/commands/conni/content/get.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/get.ts)_
353
356
 
354
357
  ## `conni conni content search CQL`
355
358
 
@@ -376,7 +379,7 @@ EXAMPLES
376
379
  $ conni conni content search 'created > startOfMonth()' --limit=5 --expand=body,version
377
380
  ```
378
381
 
379
- _See code: [src/commands/conni/content/search.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/search.ts)_
382
+ _See code: [src/commands/conni/content/search.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/search.ts)_
380
383
 
381
384
  ## `conni conni content update PAGEID`
382
385
 
@@ -410,7 +413,7 @@ EXAMPLES
410
413
  $ conni conni content update 1076199489 --fields body="$(cat content.md)"
411
414
  ```
412
415
 
413
- _See code: [src/commands/conni/content/update.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/content/update.ts)_
416
+ _See code: [src/commands/conni/content/update.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/content/update.ts)_
414
417
 
415
418
  ## `conni conni space get SPACEKEY`
416
419
 
@@ -433,7 +436,7 @@ EXAMPLES
433
436
  $ conni conni space get DEV
434
437
  ```
435
438
 
436
- _See code: [src/commands/conni/space/get.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/space/get.ts)_
439
+ _See code: [src/commands/conni/space/get.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/space/get.ts)_
437
440
 
438
441
  ## `conni conni space list`
439
442
 
@@ -453,5 +456,5 @@ EXAMPLES
453
456
  $ conni conni space list
454
457
  ```
455
458
 
456
- _See code: [src/commands/conni/space/list.ts](https://github.com/hesedcasa/conni/blob/v0.4.0/src/commands/conni/space/list.ts)_
459
+ _See code: [src/commands/conni/space/list.ts](https://github.com/hesedcasa/conni/blob/v0.5.0/src/commands/conni/space/list.ts)_
457
460
  <!-- commandsstop -->
@@ -6,6 +6,7 @@ export default class ContentCreate extends Command {
6
6
  static flags: {
7
7
  attach: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
8
  fields: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
9
+ 'full-width': import("@oclif/core/interfaces").BooleanFlag<boolean>;
9
10
  toon: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
11
  };
11
12
  run(): Promise<void>;
@@ -1,4 +1,5 @@
1
1
  import { Command, Flags } from '@oclif/core';
2
+ import fs from 'fs-extra';
2
3
  import { readConfig } from '../../../config.js';
3
4
  import { clearClients, createPage, createPageWithMedia } from '../../../conni/conni-client.js';
4
5
  import { formatAsToon } from '../../../format.js';
@@ -11,6 +12,7 @@ export default class ContentCreate extends Command {
11
12
  '<%= config.bin %> <%= command.id %> --fields spaceKey="DEV" title="Child page" body="Content" parentId="123456"',
12
13
  '<%= config.bin %> <%= command.id %> --fields spaceKey="DEV" title="Page with image" body="See the diagram:\n![diagram](./diagram.png)" --attach ./diagram.png',
13
14
  '<%= config.bin %> <%= command.id %> --fields spaceKey="DEV" title="Page with files" body="Content" --attach ./image.png --attach ./report.pdf',
15
+ '<%= config.bin %> <%= command.id %> --fields spaceKey="DEV" title="Storage page" body=@storage.xml representation=storage --full-width',
14
16
  ];
15
17
  static flags = {
16
18
  attach: Flags.string({
@@ -19,10 +21,14 @@ export default class ContentCreate extends Command {
19
21
  required: false,
20
22
  }),
21
23
  fields: Flags.string({
22
- description: 'Minimum fields required: spaceKey, title & body',
24
+ description: 'Content fields in key=value format. Use @file to read value from a file (e.g. body=@content.xml)',
23
25
  multiple: true,
24
26
  required: true,
25
- summary: 'Content fields in key=value format',
27
+ summary: 'Minimum fields required: spaceKey, title & body',
28
+ }),
29
+ 'full-width': Flags.boolean({
30
+ description: 'Set page appearance to full-width',
31
+ required: false,
26
32
  }),
27
33
  toon: Flags.boolean({ description: 'Format output as toon', required: false }),
28
34
  };
@@ -36,7 +42,12 @@ export default class ContentCreate extends Command {
36
42
  if (flags.fields) {
37
43
  for (const field of flags.fields) {
38
44
  const [key, ...valueParts] = field.split('=');
39
- const value = valueParts.join('=');
45
+ let value = valueParts.join('=');
46
+ // Support @file syntax to read value from a file
47
+ if (value.startsWith('@')) {
48
+ const filePath = value.slice(1);
49
+ value = fs.readFileSync(filePath, 'utf8');
50
+ }
40
51
  fields[key] = value;
41
52
  }
42
53
  }
@@ -46,6 +57,9 @@ export default class ContentCreate extends Command {
46
57
  this.error(`Required field "${required}" is missing`);
47
58
  }
48
59
  }
60
+ if (flags['full-width']) {
61
+ fields.fullWidth = 'true';
62
+ }
49
63
  const result = flags.attach
50
64
  ? await createPageWithMedia(config.auth, fields, flags.attach)
51
65
  : await createPage(config.auth, fields);
@@ -74,6 +74,10 @@ export declare class ConniApi {
74
74
  * Search pages using CQL
75
75
  */
76
76
  searchContents(cql: string, limit?: number, expand?: string[]): Promise<ApiResult>;
77
+ /**
78
+ * Set page appearance (full-width or fixed-width)
79
+ */
80
+ setPageAppearance(pageId: string, appearance: string): Promise<ApiResult>;
77
81
  /**
78
82
  * Test Confluence API connection
79
83
  */
@@ -108,6 +108,9 @@ export class ConniApi {
108
108
  const client = this.getClient();
109
109
  const { contentPayload } = this.buildPageBody(fields);
110
110
  const response = await client.content.createContent(contentPayload);
111
+ if (fields.fullWidth && response.id) {
112
+ await this.setPageAppearance(response.id, 'full-width');
113
+ }
111
114
  return { data: response, success: true };
112
115
  }
113
116
  catch (error) {
@@ -369,6 +372,24 @@ export class ConniApi {
369
372
  };
370
373
  }
371
374
  }
375
+ /**
376
+ * Set page appearance (full-width or fixed-width)
377
+ */
378
+ async setPageAppearance(pageId, appearance) {
379
+ try {
380
+ const client = this.getClient();
381
+ await Promise.all(['content-appearance-published', 'content-appearance-draft'].map((key) => client.contentProperties.createContentProperty({
382
+ id: pageId,
383
+ key,
384
+ value: appearance,
385
+ })));
386
+ return { success: true };
387
+ }
388
+ catch (error) {
389
+ const errorMessage = typeof error === 'object' ? String(error.message) : String(error);
390
+ return { error: errorMessage, success: false };
391
+ }
392
+ }
372
393
  /**
373
394
  * Test Confluence API connection
374
395
  */
@@ -477,8 +498,11 @@ export class ConniApi {
477
498
  }
478
499
  }
479
500
  buildPageBody(fields) {
501
+ const representation = fields.representation ?? 'atlas_doc_format';
502
+ const isStorage = representation === 'storage';
480
503
  // eslint-disable-next-line unicorn/prefer-string-replace-all
481
- const bodyContent = markdownToAdf(fields.body.replace(/\\n/g, '\n'));
504
+ const rawBody = fields.body.replace(/\\n/g, '\n');
505
+ const bodyContent = isStorage ? rawBody : markdownToAdf(rawBody);
482
506
  const spaceKey = fields.spaceKey;
483
507
  const title = fields.title;
484
508
  const parentId = fields.parentId;
@@ -487,7 +511,7 @@ export class ConniApi {
487
511
  bodyContent,
488
512
  contentPayload: {
489
513
  ancestors: parentId ? [{ id: parentId }] : undefined,
490
- body: { storage: { representation: 'atlas_doc_format', value: JSON.stringify(bodyContent) } },
514
+ body: { storage: { representation, value: isStorage ? rawBody : JSON.stringify(bodyContent) } },
491
515
  space: { key: spaceKey },
492
516
  status,
493
517
  title,
@@ -19,7 +19,7 @@
19
19
  "char": "e",
20
20
  "description": "Account email:",
21
21
  "name": "email",
22
- "required": false,
22
+ "required": true,
23
23
  "hasDynamicHelp": false,
24
24
  "multiple": false,
25
25
  "type": "option"
@@ -28,7 +28,7 @@
28
28
  "char": "t",
29
29
  "description": "API Token:",
30
30
  "name": "token",
31
- "required": false,
31
+ "required": true,
32
32
  "hasDynamicHelp": false,
33
33
  "multiple": false,
34
34
  "type": "option"
@@ -37,7 +37,7 @@
37
37
  "char": "u",
38
38
  "description": "Atlassian URL (start with https://):",
39
39
  "name": "url",
40
- "required": false,
40
+ "required": true,
41
41
  "hasDynamicHelp": false,
42
42
  "multiple": false,
43
43
  "type": "option"
@@ -112,7 +112,7 @@
112
112
  "char": "e",
113
113
  "description": "Account email",
114
114
  "name": "email",
115
- "required": false,
115
+ "required": true,
116
116
  "hasDynamicHelp": false,
117
117
  "multiple": false,
118
118
  "type": "option"
@@ -121,7 +121,7 @@
121
121
  "char": "t",
122
122
  "description": "API Token",
123
123
  "name": "token",
124
- "required": false,
124
+ "required": true,
125
125
  "hasDynamicHelp": false,
126
126
  "multiple": false,
127
127
  "type": "option"
@@ -130,7 +130,7 @@
130
130
  "char": "u",
131
131
  "description": "Atlassian instance URL (start with https://)",
132
132
  "name": "url",
133
- "required": false,
133
+ "required": true,
134
134
  "hasDynamicHelp": false,
135
135
  "multiple": false,
136
136
  "type": "option"
@@ -153,6 +153,78 @@
153
153
  "update.js"
154
154
  ]
155
155
  },
156
+ "conni:space:get": {
157
+ "aliases": [],
158
+ "args": {
159
+ "spaceKey": {
160
+ "description": "Space key",
161
+ "name": "spaceKey",
162
+ "required": true
163
+ }
164
+ },
165
+ "description": "Get details of a Confluence space",
166
+ "examples": [
167
+ "<%= config.bin %> <%= command.id %> DEV"
168
+ ],
169
+ "flags": {
170
+ "toon": {
171
+ "description": "Format output as toon",
172
+ "name": "toon",
173
+ "required": false,
174
+ "allowNo": false,
175
+ "type": "boolean"
176
+ }
177
+ },
178
+ "hasDynamicHelp": false,
179
+ "hiddenAliases": [],
180
+ "id": "conni:space:get",
181
+ "pluginAlias": "@hesed/conni",
182
+ "pluginName": "@hesed/conni",
183
+ "pluginType": "core",
184
+ "strict": true,
185
+ "enableJsonFlag": false,
186
+ "isESM": true,
187
+ "relativePath": [
188
+ "dist",
189
+ "commands",
190
+ "conni",
191
+ "space",
192
+ "get.js"
193
+ ]
194
+ },
195
+ "conni:space:list": {
196
+ "aliases": [],
197
+ "args": {},
198
+ "description": "List all Confluence spaces",
199
+ "examples": [
200
+ "<%= config.bin %> <%= command.id %>"
201
+ ],
202
+ "flags": {
203
+ "toon": {
204
+ "description": "Format output as toon",
205
+ "name": "toon",
206
+ "required": false,
207
+ "allowNo": false,
208
+ "type": "boolean"
209
+ }
210
+ },
211
+ "hasDynamicHelp": false,
212
+ "hiddenAliases": [],
213
+ "id": "conni:space:list",
214
+ "pluginAlias": "@hesed/conni",
215
+ "pluginName": "@hesed/conni",
216
+ "pluginType": "core",
217
+ "strict": true,
218
+ "enableJsonFlag": false,
219
+ "isESM": true,
220
+ "relativePath": [
221
+ "dist",
222
+ "commands",
223
+ "conni",
224
+ "space",
225
+ "list.js"
226
+ ]
227
+ },
156
228
  "conni:content:attachment-download": {
157
229
  "aliases": [],
158
230
  "args": {
@@ -380,7 +452,8 @@
380
452
  "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"New title\" body='\n# Header\n## Sub-header\n- Item 1\n- Item 2\n```bash\nls -a\n```'",
381
453
  "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Child page\" body=\"Content\" parentId=\"123456\"",
382
454
  "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with image\" body=\"See the diagram:\n![diagram](./diagram.png)\" --attach ./diagram.png",
383
- "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with files\" body=\"Content\" --attach ./image.png --attach ./report.pdf"
455
+ "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Page with files\" body=\"Content\" --attach ./image.png --attach ./report.pdf",
456
+ "<%= config.bin %> <%= command.id %> --fields spaceKey=\"DEV\" title=\"Storage page\" body=@storage.xml representation=storage --full-width"
384
457
  ],
385
458
  "flags": {
386
459
  "attach": {
@@ -392,14 +465,21 @@
392
465
  "type": "option"
393
466
  },
394
467
  "fields": {
395
- "description": "Minimum fields required: spaceKey, title & body",
468
+ "description": "Content fields in key=value format. Use @file to read value from a file (e.g. body=@content.xml)",
396
469
  "name": "fields",
397
470
  "required": true,
398
- "summary": "Content fields in key=value format",
471
+ "summary": "Minimum fields required: spaceKey, title & body",
399
472
  "hasDynamicHelp": false,
400
473
  "multiple": true,
401
474
  "type": "option"
402
475
  },
476
+ "full-width": {
477
+ "description": "Set page appearance to full-width",
478
+ "name": "full-width",
479
+ "required": false,
480
+ "allowNo": false,
481
+ "type": "boolean"
482
+ },
403
483
  "toon": {
404
484
  "description": "Format output as toon",
405
485
  "name": "toon",
@@ -600,79 +680,7 @@
600
680
  "content",
601
681
  "update.js"
602
682
  ]
603
- },
604
- "conni:space:get": {
605
- "aliases": [],
606
- "args": {
607
- "spaceKey": {
608
- "description": "Space key",
609
- "name": "spaceKey",
610
- "required": true
611
- }
612
- },
613
- "description": "Get details of a Confluence space",
614
- "examples": [
615
- "<%= config.bin %> <%= command.id %> DEV"
616
- ],
617
- "flags": {
618
- "toon": {
619
- "description": "Format output as toon",
620
- "name": "toon",
621
- "required": false,
622
- "allowNo": false,
623
- "type": "boolean"
624
- }
625
- },
626
- "hasDynamicHelp": false,
627
- "hiddenAliases": [],
628
- "id": "conni:space:get",
629
- "pluginAlias": "@hesed/conni",
630
- "pluginName": "@hesed/conni",
631
- "pluginType": "core",
632
- "strict": true,
633
- "enableJsonFlag": false,
634
- "isESM": true,
635
- "relativePath": [
636
- "dist",
637
- "commands",
638
- "conni",
639
- "space",
640
- "get.js"
641
- ]
642
- },
643
- "conni:space:list": {
644
- "aliases": [],
645
- "args": {},
646
- "description": "List all Confluence spaces",
647
- "examples": [
648
- "<%= config.bin %> <%= command.id %>"
649
- ],
650
- "flags": {
651
- "toon": {
652
- "description": "Format output as toon",
653
- "name": "toon",
654
- "required": false,
655
- "allowNo": false,
656
- "type": "boolean"
657
- }
658
- },
659
- "hasDynamicHelp": false,
660
- "hiddenAliases": [],
661
- "id": "conni:space:list",
662
- "pluginAlias": "@hesed/conni",
663
- "pluginName": "@hesed/conni",
664
- "pluginType": "core",
665
- "strict": true,
666
- "enableJsonFlag": false,
667
- "isESM": true,
668
- "relativePath": [
669
- "dist",
670
- "commands",
671
- "conni",
672
- "space",
673
- "list.js"
674
- ]
675
683
  }
676
684
  },
677
- "version": "0.4.0"
685
+ "version": "0.5.0"
678
686
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hesed/conni",
3
3
  "description": "CLI for Confluence API interaction",
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "author": "Hesed",
6
6
  "bin": {
7
7
  "conni": "./bin/run.js"