@hesed/conni 0.8.0 → 0.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/README.md +38 -38
- package/dist/commands/conni/auth/add.js +1 -1
- package/dist/commands/conni/auth/delete.js +1 -1
- package/dist/commands/conni/auth/list.js +1 -1
- package/dist/commands/conni/auth/profile.js +1 -1
- package/dist/commands/conni/auth/test.js +1 -1
- package/dist/commands/conni/auth/update.js +1 -1
- package/dist/commands/conni/content/attachment-download.js +1 -1
- package/dist/commands/conni/content/attachment.js +1 -1
- package/dist/commands/conni/content/comment-delete.js +1 -1
- package/dist/commands/conni/content/comment-update.js +1 -1
- package/dist/commands/conni/content/comment.js +1 -1
- package/dist/commands/conni/content/create.js +1 -1
- package/dist/commands/conni/content/delete.js +1 -1
- package/dist/commands/conni/content/get.js +1 -1
- package/dist/commands/conni/content/search.js +1 -1
- package/dist/commands/conni/content/update.js +1 -1
- package/dist/commands/conni/space/get.js +1 -1
- package/dist/commands/conni/space/list.js +1 -1
- package/oclif.manifest.json +40 -42
- package/package.json +2 -2
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.
|
|
29
|
+
@hesed/conni/0.9.0 linux-x64 node-v24.16.0
|
|
30
30
|
$ conni --help [COMMAND]
|
|
31
31
|
USAGE
|
|
32
32
|
$ conni COMMAND
|
|
@@ -62,13 +62,13 @@ Add Confluence authentication
|
|
|
62
62
|
|
|
63
63
|
```
|
|
64
64
|
USAGE
|
|
65
|
-
$ conni conni auth add -
|
|
65
|
+
$ conni conni auth add -p <value> -t <value> -e <value> -u <value> [--json]
|
|
66
66
|
|
|
67
67
|
FLAGS
|
|
68
|
-
-e, --email=<value>
|
|
69
|
-
-p, --profile=<value>
|
|
70
|
-
-t, --
|
|
71
|
-
-u, --
|
|
68
|
+
-e, --email=<value> (required) Account email
|
|
69
|
+
-p, --profile=<value> (required) Profile name
|
|
70
|
+
-t, --apiToken=<value> (required) API Token
|
|
71
|
+
-u, --host=<value> (required) Confluence instance URL
|
|
72
72
|
|
|
73
73
|
GLOBAL FLAGS
|
|
74
74
|
--json Format output as json.
|
|
@@ -79,10 +79,10 @@ DESCRIPTION
|
|
|
79
79
|
EXAMPLES
|
|
80
80
|
$ conni conni auth add
|
|
81
81
|
|
|
82
|
-
$ conni conni auth add
|
|
82
|
+
$ conni conni auth add -p prod
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
_See code: [src/commands/conni/auth/add.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
85
|
+
_See code: [src/commands/conni/auth/add.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/add.ts)_
|
|
86
86
|
|
|
87
87
|
## `conni conni auth delete`
|
|
88
88
|
|
|
@@ -93,7 +93,7 @@ USAGE
|
|
|
93
93
|
$ conni conni auth delete [--json] [-p <value>]
|
|
94
94
|
|
|
95
95
|
FLAGS
|
|
96
|
-
-p, --profile=<value> Profile
|
|
96
|
+
-p, --profile=<value> Profile to delete
|
|
97
97
|
|
|
98
98
|
GLOBAL FLAGS
|
|
99
99
|
--json Format output as json.
|
|
@@ -104,10 +104,10 @@ DESCRIPTION
|
|
|
104
104
|
EXAMPLES
|
|
105
105
|
$ conni conni auth delete
|
|
106
106
|
|
|
107
|
-
$ conni conni auth delete
|
|
107
|
+
$ conni conni auth delete -p prod
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
_See code: [src/commands/conni/auth/delete.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
110
|
+
_See code: [src/commands/conni/auth/delete.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/delete.ts)_
|
|
111
111
|
|
|
112
112
|
## `conni conni auth list`
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ EXAMPLES
|
|
|
127
127
|
$ conni conni auth list
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
_See code: [src/commands/conni/auth/list.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
130
|
+
_See code: [src/commands/conni/auth/list.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/list.ts)_
|
|
131
131
|
|
|
132
132
|
## `conni conni auth profile`
|
|
133
133
|
|
|
@@ -138,7 +138,7 @@ USAGE
|
|
|
138
138
|
$ conni conni auth profile [--json] [--default <value>]
|
|
139
139
|
|
|
140
140
|
FLAGS
|
|
141
|
-
--default=<value> Profile
|
|
141
|
+
--default=<value> Profile to set as default
|
|
142
142
|
|
|
143
143
|
GLOBAL FLAGS
|
|
144
144
|
--json Format output as json.
|
|
@@ -149,10 +149,10 @@ DESCRIPTION
|
|
|
149
149
|
EXAMPLES
|
|
150
150
|
$ conni conni auth profile
|
|
151
151
|
|
|
152
|
-
$ conni conni auth profile --default
|
|
152
|
+
$ conni conni auth profile --default test
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
_See code: [src/commands/conni/auth/profile.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
155
|
+
_See code: [src/commands/conni/auth/profile.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/profile.ts)_
|
|
156
156
|
|
|
157
157
|
## `conni conni auth test`
|
|
158
158
|
|
|
@@ -174,38 +174,38 @@ DESCRIPTION
|
|
|
174
174
|
EXAMPLES
|
|
175
175
|
$ conni conni auth test
|
|
176
176
|
|
|
177
|
-
$ conni conni auth test
|
|
177
|
+
$ conni conni auth test -p prod
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
_See code: [src/commands/conni/auth/test.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
180
|
+
_See code: [src/commands/conni/auth/test.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/test.ts)_
|
|
181
181
|
|
|
182
182
|
## `conni conni auth update`
|
|
183
183
|
|
|
184
|
-
Update
|
|
184
|
+
Update Confluence authentication
|
|
185
185
|
|
|
186
186
|
```
|
|
187
187
|
USAGE
|
|
188
|
-
$ conni conni auth update -
|
|
188
|
+
$ conni conni auth update -p <value> -t <value> -e <value> -u <value> [--json]
|
|
189
189
|
|
|
190
190
|
FLAGS
|
|
191
|
-
-e, --email=<value>
|
|
192
|
-
-p, --profile=<value>
|
|
193
|
-
-t, --
|
|
194
|
-
-u, --
|
|
191
|
+
-e, --email=<value> (required) Account email
|
|
192
|
+
-p, --profile=<value> (required) Profile name
|
|
193
|
+
-t, --apiToken=<value> (required) API Token
|
|
194
|
+
-u, --host=<value> (required) Confluence instance URL
|
|
195
195
|
|
|
196
196
|
GLOBAL FLAGS
|
|
197
197
|
--json Format output as json.
|
|
198
198
|
|
|
199
199
|
DESCRIPTION
|
|
200
|
-
Update
|
|
200
|
+
Update Confluence authentication
|
|
201
201
|
|
|
202
202
|
EXAMPLES
|
|
203
203
|
$ conni conni auth update
|
|
204
204
|
|
|
205
|
-
$ conni conni auth update
|
|
205
|
+
$ conni conni auth update -p test
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
_See code: [src/commands/conni/auth/update.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
208
|
+
_See code: [src/commands/conni/auth/update.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/auth/update.ts)_
|
|
209
209
|
|
|
210
210
|
## `conni conni content attachment PAGEID FILE`
|
|
211
211
|
|
|
@@ -230,7 +230,7 @@ EXAMPLES
|
|
|
230
230
|
$ conni conni content attachment 123456 ./document.pdf
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
_See code: [src/commands/conni/content/attachment.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
233
|
+
_See code: [src/commands/conni/content/attachment.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/attachment.ts)_
|
|
234
234
|
|
|
235
235
|
## `conni conni content attachment-download ATTACHMENTID [OUTPUTPATH]`
|
|
236
236
|
|
|
@@ -257,7 +257,7 @@ EXAMPLES
|
|
|
257
257
|
$ conni conni content attachment-download att12345 ./document.pdf
|
|
258
258
|
```
|
|
259
259
|
|
|
260
|
-
_See code: [src/commands/conni/content/attachment-download.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
260
|
+
_See code: [src/commands/conni/content/attachment-download.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/attachment-download.ts)_
|
|
261
261
|
|
|
262
262
|
## `conni conni content comment PAGEID BODY`
|
|
263
263
|
|
|
@@ -291,7 +291,7 @@ EXAMPLES
|
|
|
291
291
|
$ conni conni content comment 123456 "$(cat content.md)"
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
_See code: [src/commands/conni/content/comment.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
294
|
+
_See code: [src/commands/conni/content/comment.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/comment.ts)_
|
|
295
295
|
|
|
296
296
|
## `conni conni content comment-delete ID`
|
|
297
297
|
|
|
@@ -315,7 +315,7 @@ EXAMPLES
|
|
|
315
315
|
$ conni conni content comment-delete 1544224770
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
-
_See code: [src/commands/conni/content/comment-delete.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
318
|
+
_See code: [src/commands/conni/content/comment-delete.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/comment-delete.ts)_
|
|
319
319
|
|
|
320
320
|
## `conni conni content comment-update ID BODY`
|
|
321
321
|
|
|
@@ -349,7 +349,7 @@ EXAMPLES
|
|
|
349
349
|
$ conni conni content comment-update 1544224770 "$(cat content.md)"
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
-
_See code: [src/commands/conni/content/comment-update.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
352
|
+
_See code: [src/commands/conni/content/comment-update.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/comment-update.ts)_
|
|
353
353
|
|
|
354
354
|
## `conni conni content create`
|
|
355
355
|
|
|
@@ -396,7 +396,7 @@ FLAG DESCRIPTIONS
|
|
|
396
396
|
Content fields in key=value format. Use @file to read value from a file (e.g. body=@content.xml)
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
_See code: [src/commands/conni/content/create.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
399
|
+
_See code: [src/commands/conni/content/create.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/create.ts)_
|
|
400
400
|
|
|
401
401
|
## `conni conni content delete PAGEID`
|
|
402
402
|
|
|
@@ -420,7 +420,7 @@ EXAMPLES
|
|
|
420
420
|
$ conni conni content delete 1543634992
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
-
_See code: [src/commands/conni/content/delete.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
423
|
+
_See code: [src/commands/conni/content/delete.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/delete.ts)_
|
|
424
424
|
|
|
425
425
|
## `conni conni content get PAGEID`
|
|
426
426
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
$ conni conni content get 1544060948
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/commands/conni/content/get.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
447
|
+
_See code: [src/commands/conni/content/get.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/get.ts)_
|
|
448
448
|
|
|
449
449
|
## `conni conni content search CQL`
|
|
450
450
|
|
|
@@ -472,7 +472,7 @@ EXAMPLES
|
|
|
472
472
|
$ conni conni content search 'created > startOfMonth()' --limit=5 --expand=body,version
|
|
473
473
|
```
|
|
474
474
|
|
|
475
|
-
_See code: [src/commands/conni/content/search.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
475
|
+
_See code: [src/commands/conni/content/search.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/search.ts)_
|
|
476
476
|
|
|
477
477
|
## `conni conni content update PAGEID`
|
|
478
478
|
|
|
@@ -512,7 +512,7 @@ EXAMPLES
|
|
|
512
512
|
$ conni conni content update 1076199489 --fields body=@storage.xml representation=storage --full-width
|
|
513
513
|
```
|
|
514
514
|
|
|
515
|
-
_See code: [src/commands/conni/content/update.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
515
|
+
_See code: [src/commands/conni/content/update.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/content/update.ts)_
|
|
516
516
|
|
|
517
517
|
## `conni conni space get SPACEKEY`
|
|
518
518
|
|
|
@@ -536,7 +536,7 @@ EXAMPLES
|
|
|
536
536
|
$ conni conni space get DEV
|
|
537
537
|
```
|
|
538
538
|
|
|
539
|
-
_See code: [src/commands/conni/space/get.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
539
|
+
_See code: [src/commands/conni/space/get.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/space/get.ts)_
|
|
540
540
|
|
|
541
541
|
## `conni conni space list`
|
|
542
542
|
|
|
@@ -557,5 +557,5 @@ EXAMPLES
|
|
|
557
557
|
$ conni conni space list
|
|
558
558
|
```
|
|
559
559
|
|
|
560
|
-
_See code: [src/commands/conni/space/list.ts](https://github.com/hesedcasa/conni/blob/v0.
|
|
560
|
+
_See code: [src/commands/conni/space/list.ts](https://github.com/hesedcasa/conni/blob/v0.9.0/src/commands/conni/space/list.ts)_
|
|
561
561
|
<!-- commandsstop -->
|
|
@@ -2,7 +2,7 @@ import { createAuthAddCommand } from '@hesed/plugin-lib';
|
|
|
2
2
|
import { clearClients, testConnection } from '../../../conni/conni-client.js';
|
|
3
3
|
export default createAuthAddCommand({
|
|
4
4
|
clearClients,
|
|
5
|
-
|
|
5
|
+
configFile: 'conni-config.json',
|
|
6
6
|
serviceName: 'Confluence',
|
|
7
7
|
testConnection,
|
|
8
8
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthDeleteCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthDeleteCommand();
|
|
2
|
+
export default createAuthDeleteCommand({ configFile: 'conni-config.json' });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthListCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthListCommand({
|
|
2
|
+
export default createAuthListCommand({ configFile: 'conni-config.json' });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createAuthProfileCommand } from '@hesed/plugin-lib';
|
|
2
|
-
export default createAuthProfileCommand();
|
|
2
|
+
export default createAuthProfileCommand({ configFile: 'conni-config.json' });
|
|
@@ -2,7 +2,7 @@ import { createAuthTestCommand } from '@hesed/plugin-lib';
|
|
|
2
2
|
import { clearClients, testConnection } from '../../../conni/conni-client.js';
|
|
3
3
|
export default createAuthTestCommand({
|
|
4
4
|
clearClients,
|
|
5
|
-
|
|
5
|
+
configFile: 'conni-config.json',
|
|
6
6
|
serviceName: 'Confluence',
|
|
7
7
|
testConnection,
|
|
8
8
|
});
|
|
@@ -2,7 +2,7 @@ import { createAuthUpdateCommand } from '@hesed/plugin-lib';
|
|
|
2
2
|
import { clearClients, testConnection } from '../../../conni/conni-client.js';
|
|
3
3
|
export default createAuthUpdateCommand({
|
|
4
4
|
clearClients,
|
|
5
|
-
|
|
5
|
+
configFile: 'conni-config.json',
|
|
6
6
|
serviceName: 'Confluence',
|
|
7
7
|
testConnection,
|
|
8
8
|
});
|
|
@@ -21,7 +21,7 @@ export default class ContentDownloadAttachment extends Command {
|
|
|
21
21
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
22
22
|
const auth = await loadAuthConfig();
|
|
23
23
|
if (!auth) {
|
|
24
|
-
|
|
24
|
+
this.error(`Missing authentication config.`);
|
|
25
25
|
}
|
|
26
26
|
if (!args.outputPath) {
|
|
27
27
|
args.outputPath = process.cwd();
|
|
@@ -20,7 +20,7 @@ export default class ContentAttachment extends Command {
|
|
|
20
20
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
21
21
|
const auth = await loadAuthConfig();
|
|
22
22
|
if (!auth) {
|
|
23
|
-
|
|
23
|
+
this.error(`Missing authentication config.`);
|
|
24
24
|
}
|
|
25
25
|
action.start(`Uploading attachment "${args.file}" to page ${args.pageId}`);
|
|
26
26
|
const result = await addAttachment(auth, args.pageId, args.file);
|
|
@@ -16,7 +16,7 @@ export default class ContentDeleteComment extends Command {
|
|
|
16
16
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
17
17
|
const auth = await loadAuthConfig();
|
|
18
18
|
if (!auth) {
|
|
19
|
-
|
|
19
|
+
this.error(`Missing authentication config.`);
|
|
20
20
|
}
|
|
21
21
|
const result = await deleteComment(auth, args.id);
|
|
22
22
|
clearClients();
|
|
@@ -22,7 +22,7 @@ export default class ContentUpdateComment extends Command {
|
|
|
22
22
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
23
23
|
const auth = await loadAuthConfig();
|
|
24
24
|
if (!auth) {
|
|
25
|
-
|
|
25
|
+
this.error(`Missing authentication config.`);
|
|
26
26
|
}
|
|
27
27
|
const result = await updateComment(auth, args.id, args.body);
|
|
28
28
|
clearClients();
|
|
@@ -22,7 +22,7 @@ export default class ContentAddComment extends Command {
|
|
|
22
22
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
23
23
|
const auth = await loadAuthConfig();
|
|
24
24
|
if (!auth) {
|
|
25
|
-
|
|
25
|
+
this.error(`Missing authentication config.`);
|
|
26
26
|
}
|
|
27
27
|
const result = await addComment(auth, args.pageId, args.body);
|
|
28
28
|
clearClients();
|
|
@@ -37,7 +37,7 @@ export default class ContentCreate extends Command {
|
|
|
37
37
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
38
38
|
const auth = await loadAuthConfig();
|
|
39
39
|
if (!auth) {
|
|
40
|
-
|
|
40
|
+
this.error(`Missing authentication config.`);
|
|
41
41
|
}
|
|
42
42
|
const fields = {};
|
|
43
43
|
if (flags.fields) {
|
|
@@ -16,7 +16,7 @@ export default class ContentDelete extends Command {
|
|
|
16
16
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
17
17
|
const auth = await loadAuthConfig();
|
|
18
18
|
if (!auth) {
|
|
19
|
-
|
|
19
|
+
this.error(`Missing authentication config.`);
|
|
20
20
|
}
|
|
21
21
|
const result = await deleteContent(auth, args.pageId);
|
|
22
22
|
clearClients();
|
|
@@ -16,7 +16,7 @@ export default class ContentGet extends Command {
|
|
|
16
16
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
17
17
|
const auth = await loadAuthConfig();
|
|
18
18
|
if (!auth) {
|
|
19
|
-
|
|
19
|
+
this.error(`Missing authentication config.`);
|
|
20
20
|
}
|
|
21
21
|
const result = await getContent(auth, args.pageId);
|
|
22
22
|
clearClients();
|
|
@@ -21,7 +21,7 @@ export default class ContentSearch extends Command {
|
|
|
21
21
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
22
22
|
const auth = await loadAuthConfig();
|
|
23
23
|
if (!auth) {
|
|
24
|
-
|
|
24
|
+
this.error(`Missing authentication config.`);
|
|
25
25
|
}
|
|
26
26
|
const result = await searchContents(auth, args.cql, flags.limit, flags.expand ? flags.expand.split(',') : undefined);
|
|
27
27
|
clearClients();
|
|
@@ -31,7 +31,7 @@ export default class ContentUpdate extends Command {
|
|
|
31
31
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
32
32
|
const auth = await loadAuthConfig();
|
|
33
33
|
if (!auth) {
|
|
34
|
-
|
|
34
|
+
this.error(`Missing authentication config.`);
|
|
35
35
|
}
|
|
36
36
|
const fields = {};
|
|
37
37
|
if (flags.fields) {
|
|
@@ -16,7 +16,7 @@ export default class SpaceGet extends Command {
|
|
|
16
16
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
17
17
|
const auth = await loadAuthConfig();
|
|
18
18
|
if (!auth) {
|
|
19
|
-
|
|
19
|
+
this.error(`Missing authentication config.`);
|
|
20
20
|
}
|
|
21
21
|
const result = await getSpace(auth, args.spaceKey);
|
|
22
22
|
clearClients();
|
|
@@ -13,7 +13,7 @@ export default class SpaceList extends Command {
|
|
|
13
13
|
const { loadAuthConfig } = createProfileManager(this.config, flags.profile);
|
|
14
14
|
const auth = await loadAuthConfig();
|
|
15
15
|
if (!auth) {
|
|
16
|
-
|
|
16
|
+
this.error(`Missing authentication config.`);
|
|
17
17
|
}
|
|
18
18
|
const result = await listSpaces(auth);
|
|
19
19
|
clearClients();
|
package/oclif.manifest.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Add Confluence authentication",
|
|
7
7
|
"examples": [
|
|
8
8
|
"<%= config.bin %> <%= command.id %>",
|
|
9
|
-
"<%= config.bin %> <%= command.id %>
|
|
9
|
+
"<%= config.bin %> <%= command.id %> -p prod"
|
|
10
10
|
],
|
|
11
11
|
"flags": {
|
|
12
12
|
"json": {
|
|
@@ -16,38 +16,37 @@
|
|
|
16
16
|
"allowNo": false,
|
|
17
17
|
"type": "boolean"
|
|
18
18
|
},
|
|
19
|
-
"email": {
|
|
20
|
-
"char": "e",
|
|
21
|
-
"description": "Account email",
|
|
22
|
-
"name": "email",
|
|
23
|
-
"required": false,
|
|
24
|
-
"hasDynamicHelp": false,
|
|
25
|
-
"multiple": false,
|
|
26
|
-
"type": "option"
|
|
27
|
-
},
|
|
28
19
|
"profile": {
|
|
29
20
|
"char": "p",
|
|
30
21
|
"description": "Profile name",
|
|
31
22
|
"name": "profile",
|
|
32
|
-
"required":
|
|
23
|
+
"required": true,
|
|
33
24
|
"hasDynamicHelp": false,
|
|
34
25
|
"multiple": false,
|
|
35
26
|
"type": "option"
|
|
36
27
|
},
|
|
37
|
-
"
|
|
28
|
+
"apiToken": {
|
|
38
29
|
"char": "t",
|
|
39
30
|
"description": "API Token",
|
|
40
|
-
"name": "
|
|
31
|
+
"name": "apiToken",
|
|
41
32
|
"required": true,
|
|
42
33
|
"hasDynamicHelp": false,
|
|
43
34
|
"multiple": false,
|
|
44
35
|
"type": "option"
|
|
45
36
|
},
|
|
46
|
-
"
|
|
37
|
+
"email": {
|
|
38
|
+
"char": "e",
|
|
39
|
+
"description": "Account email",
|
|
40
|
+
"name": "email",
|
|
41
|
+
"required": true,
|
|
42
|
+
"hasDynamicHelp": false,
|
|
43
|
+
"multiple": false,
|
|
44
|
+
"type": "option"
|
|
45
|
+
},
|
|
46
|
+
"host": {
|
|
47
47
|
"char": "u",
|
|
48
|
-
"description": "Confluence instance URL
|
|
49
|
-
"
|
|
50
|
-
"name": "url",
|
|
48
|
+
"description": "Confluence instance URL",
|
|
49
|
+
"name": "host",
|
|
51
50
|
"required": true,
|
|
52
51
|
"hasDynamicHelp": false,
|
|
53
52
|
"multiple": false,
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
"description": "Delete an authentication profile",
|
|
78
77
|
"examples": [
|
|
79
78
|
"<%= config.bin %> <%= command.id %>",
|
|
80
|
-
"<%= config.bin %> <%= command.id %>
|
|
79
|
+
"<%= config.bin %> <%= command.id %> -p prod"
|
|
81
80
|
],
|
|
82
81
|
"flags": {
|
|
83
82
|
"json": {
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
},
|
|
90
89
|
"profile": {
|
|
91
90
|
"char": "p",
|
|
92
|
-
"description": "Profile
|
|
91
|
+
"description": "Profile to delete",
|
|
93
92
|
"name": "profile",
|
|
94
93
|
"required": false,
|
|
95
94
|
"hasDynamicHelp": false,
|
|
@@ -153,7 +152,7 @@
|
|
|
153
152
|
"description": "Set or show the default authentication profile",
|
|
154
153
|
"examples": [
|
|
155
154
|
"<%= config.bin %> <%= command.id %>",
|
|
156
|
-
"<%= config.bin %> <%= command.id %> --default
|
|
155
|
+
"<%= config.bin %> <%= command.id %> --default test"
|
|
157
156
|
],
|
|
158
157
|
"flags": {
|
|
159
158
|
"json": {
|
|
@@ -164,7 +163,7 @@
|
|
|
164
163
|
"type": "boolean"
|
|
165
164
|
},
|
|
166
165
|
"default": {
|
|
167
|
-
"description": "Profile
|
|
166
|
+
"description": "Profile to set as default",
|
|
168
167
|
"name": "default",
|
|
169
168
|
"required": false,
|
|
170
169
|
"hasDynamicHelp": false,
|
|
@@ -195,7 +194,7 @@
|
|
|
195
194
|
"description": "Test authentication and connection",
|
|
196
195
|
"examples": [
|
|
197
196
|
"<%= config.bin %> <%= command.id %>",
|
|
198
|
-
"<%= config.bin %> <%= command.id %>
|
|
197
|
+
"<%= config.bin %> <%= command.id %> -p prod"
|
|
199
198
|
],
|
|
200
199
|
"flags": {
|
|
201
200
|
"json": {
|
|
@@ -235,10 +234,10 @@
|
|
|
235
234
|
"conni:auth:update": {
|
|
236
235
|
"aliases": [],
|
|
237
236
|
"args": {},
|
|
238
|
-
"description": "Update
|
|
237
|
+
"description": "Update Confluence authentication",
|
|
239
238
|
"examples": [
|
|
240
239
|
"<%= config.bin %> <%= command.id %>",
|
|
241
|
-
"<%= config.bin %> <%= command.id %>
|
|
240
|
+
"<%= config.bin %> <%= command.id %> -p test"
|
|
242
241
|
],
|
|
243
242
|
"flags": {
|
|
244
243
|
"json": {
|
|
@@ -248,38 +247,37 @@
|
|
|
248
247
|
"allowNo": false,
|
|
249
248
|
"type": "boolean"
|
|
250
249
|
},
|
|
251
|
-
"email": {
|
|
252
|
-
"char": "e",
|
|
253
|
-
"description": "Account email",
|
|
254
|
-
"name": "email",
|
|
255
|
-
"required": false,
|
|
256
|
-
"hasDynamicHelp": false,
|
|
257
|
-
"multiple": false,
|
|
258
|
-
"type": "option"
|
|
259
|
-
},
|
|
260
250
|
"profile": {
|
|
261
251
|
"char": "p",
|
|
262
|
-
"description": "Profile name
|
|
252
|
+
"description": "Profile name",
|
|
263
253
|
"name": "profile",
|
|
264
|
-
"required":
|
|
254
|
+
"required": true,
|
|
265
255
|
"hasDynamicHelp": false,
|
|
266
256
|
"multiple": false,
|
|
267
257
|
"type": "option"
|
|
268
258
|
},
|
|
269
|
-
"
|
|
259
|
+
"apiToken": {
|
|
270
260
|
"char": "t",
|
|
271
261
|
"description": "API Token",
|
|
272
|
-
"name": "
|
|
262
|
+
"name": "apiToken",
|
|
263
|
+
"required": true,
|
|
264
|
+
"hasDynamicHelp": false,
|
|
265
|
+
"multiple": false,
|
|
266
|
+
"type": "option"
|
|
267
|
+
},
|
|
268
|
+
"email": {
|
|
269
|
+
"char": "e",
|
|
270
|
+
"description": "Account email",
|
|
271
|
+
"name": "email",
|
|
273
272
|
"required": true,
|
|
274
273
|
"hasDynamicHelp": false,
|
|
275
274
|
"multiple": false,
|
|
276
275
|
"type": "option"
|
|
277
276
|
},
|
|
278
|
-
"
|
|
277
|
+
"host": {
|
|
279
278
|
"char": "u",
|
|
280
|
-
"description": "Confluence instance URL
|
|
281
|
-
"
|
|
282
|
-
"name": "url",
|
|
279
|
+
"description": "Confluence instance URL",
|
|
280
|
+
"name": "host",
|
|
283
281
|
"required": true,
|
|
284
282
|
"hasDynamicHelp": false,
|
|
285
283
|
"multiple": false,
|
|
@@ -955,5 +953,5 @@
|
|
|
955
953
|
]
|
|
956
954
|
}
|
|
957
955
|
},
|
|
958
|
-
"version": "0.
|
|
956
|
+
"version": "0.9.0"
|
|
959
957
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hesed/conni",
|
|
3
3
|
"description": "CLI for Confluence API interaction",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"author": "Hesed",
|
|
6
6
|
"bin": {
|
|
7
7
|
"conni": "./bin/run.js"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/hesedcasa/conni/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@hesed/plugin-lib": "^0.
|
|
11
|
+
"@hesed/plugin-lib": "^0.9.0",
|
|
12
12
|
"@inquirer/prompts": "^8.2.0",
|
|
13
13
|
"@oclif/core": "^4",
|
|
14
14
|
"confluence.js": "^2.1.0",
|