@apollo-annotation/cli 0.1.21 → 0.2.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/README.md +33 -33
- package/dist/commands/assembly/add-from-fasta.js +1 -1
- package/dist/commands/assembly/add-from-gff.js +1 -1
- package/dist/commands/assembly/get.test.js +4 -4
- package/dist/commands/change/get.test.js +2 -2
- package/dist/commands/feature/add-child.js +3 -5
- package/dist/commands/file/upload.js +3 -4
- package/dist/commands/user/get.test.js +2 -2
- package/dist/fileCommand.js +1 -1
- package/dist/utils.js +6 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @apollo-annotation/cli
|
|
|
16
16
|
$ apollo COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ apollo (--version)
|
|
19
|
-
@apollo-annotation/cli/0.1
|
|
19
|
+
@apollo-annotation/cli/0.2.1 linux-x64 node-v18.20.5
|
|
20
20
|
$ apollo --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ apollo COMMAND
|
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
_See code:
|
|
111
|
-
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
111
|
+
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_
|
|
112
112
|
|
|
113
113
|
## `apollo assembly add-from-gff INPUT-FILE`
|
|
114
114
|
|
|
@@ -144,7 +144,7 @@ EXAMPLES
|
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
_See code:
|
|
147
|
-
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
147
|
+
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_
|
|
148
148
|
|
|
149
149
|
## `apollo assembly check`
|
|
150
150
|
|
|
@@ -186,7 +186,7 @@ EXAMPLES
|
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
_See code:
|
|
189
|
-
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
189
|
+
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/check.ts)_
|
|
190
190
|
|
|
191
191
|
## `apollo assembly delete`
|
|
192
192
|
|
|
@@ -214,7 +214,7 @@ EXAMPLES
|
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
_See code:
|
|
217
|
-
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
217
|
+
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/delete.ts)_
|
|
218
218
|
|
|
219
219
|
## `apollo assembly get`
|
|
220
220
|
|
|
@@ -236,7 +236,7 @@ DESCRIPTION
|
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
_See code:
|
|
239
|
-
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
239
|
+
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/get.ts)_
|
|
240
240
|
|
|
241
241
|
## `apollo assembly sequence`
|
|
242
242
|
|
|
@@ -271,7 +271,7 @@ EXAMPLES
|
|
|
271
271
|
```
|
|
272
272
|
|
|
273
273
|
_See code:
|
|
274
|
-
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
274
|
+
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/sequence.ts)_
|
|
275
275
|
|
|
276
276
|
## `apollo change get`
|
|
277
277
|
|
|
@@ -295,7 +295,7 @@ DESCRIPTION
|
|
|
295
295
|
```
|
|
296
296
|
|
|
297
297
|
_See code:
|
|
298
|
-
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
298
|
+
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/change/get.ts)_
|
|
299
299
|
|
|
300
300
|
## `apollo config [KEY] [VALUE]`
|
|
301
301
|
|
|
@@ -350,7 +350,7 @@ EXAMPLES
|
|
|
350
350
|
```
|
|
351
351
|
|
|
352
352
|
_See code:
|
|
353
|
-
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
353
|
+
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/config.ts)_
|
|
354
354
|
|
|
355
355
|
## `apollo feature add-child`
|
|
356
356
|
|
|
@@ -381,7 +381,7 @@ EXAMPLES
|
|
|
381
381
|
```
|
|
382
382
|
|
|
383
383
|
_See code:
|
|
384
|
-
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
384
|
+
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/add-child.ts)_
|
|
385
385
|
|
|
386
386
|
## `apollo feature check`
|
|
387
387
|
|
|
@@ -414,7 +414,7 @@ EXAMPLES
|
|
|
414
414
|
```
|
|
415
415
|
|
|
416
416
|
_See code:
|
|
417
|
-
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
417
|
+
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/check.ts)_
|
|
418
418
|
|
|
419
419
|
## `apollo feature copy`
|
|
420
420
|
|
|
@@ -445,7 +445,7 @@ EXAMPLES
|
|
|
445
445
|
```
|
|
446
446
|
|
|
447
447
|
_See code:
|
|
448
|
-
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
448
|
+
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/copy.ts)_
|
|
449
449
|
|
|
450
450
|
## `apollo feature delete`
|
|
451
451
|
|
|
@@ -469,7 +469,7 @@ DESCRIPTION
|
|
|
469
469
|
```
|
|
470
470
|
|
|
471
471
|
_See code:
|
|
472
|
-
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
472
|
+
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/delete.ts)_
|
|
473
473
|
|
|
474
474
|
## `apollo feature edit`
|
|
475
475
|
|
|
@@ -511,7 +511,7 @@ EXAMPLES
|
|
|
511
511
|
```
|
|
512
512
|
|
|
513
513
|
_See code:
|
|
514
|
-
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
514
|
+
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit.ts)_
|
|
515
515
|
|
|
516
516
|
## `apollo feature edit-attribute`
|
|
517
517
|
|
|
@@ -551,7 +551,7 @@ EXAMPLES
|
|
|
551
551
|
```
|
|
552
552
|
|
|
553
553
|
_See code:
|
|
554
|
-
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
554
|
+
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
|
|
555
555
|
|
|
556
556
|
## `apollo feature edit-coords`
|
|
557
557
|
|
|
@@ -585,7 +585,7 @@ EXAMPLES
|
|
|
585
585
|
```
|
|
586
586
|
|
|
587
587
|
_See code:
|
|
588
|
-
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
588
|
+
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
|
|
589
589
|
|
|
590
590
|
## `apollo feature edit-type`
|
|
591
591
|
|
|
@@ -609,7 +609,7 @@ DESCRIPTION
|
|
|
609
609
|
```
|
|
610
610
|
|
|
611
611
|
_See code:
|
|
612
|
-
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
612
|
+
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-type.ts)_
|
|
613
613
|
|
|
614
614
|
## `apollo feature get`
|
|
615
615
|
|
|
@@ -643,7 +643,7 @@ EXAMPLES
|
|
|
643
643
|
```
|
|
644
644
|
|
|
645
645
|
_See code:
|
|
646
|
-
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
646
|
+
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/get.ts)_
|
|
647
647
|
|
|
648
648
|
## `apollo feature get-id`
|
|
649
649
|
|
|
@@ -671,7 +671,7 @@ EXAMPLES
|
|
|
671
671
|
```
|
|
672
672
|
|
|
673
673
|
_See code:
|
|
674
|
-
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
674
|
+
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/get-id.ts)_
|
|
675
675
|
|
|
676
676
|
## `apollo feature import INPUT-FILE`
|
|
677
677
|
|
|
@@ -702,7 +702,7 @@ EXAMPLES
|
|
|
702
702
|
```
|
|
703
703
|
|
|
704
704
|
_See code:
|
|
705
|
-
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
705
|
+
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/import.ts)_
|
|
706
706
|
|
|
707
707
|
## `apollo feature search`
|
|
708
708
|
|
|
@@ -753,7 +753,7 @@ EXAMPLES
|
|
|
753
753
|
```
|
|
754
754
|
|
|
755
755
|
_See code:
|
|
756
|
-
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
756
|
+
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/search.ts)_
|
|
757
757
|
|
|
758
758
|
## `apollo file delete`
|
|
759
759
|
|
|
@@ -780,7 +780,7 @@ EXAMPLES
|
|
|
780
780
|
```
|
|
781
781
|
|
|
782
782
|
_See code:
|
|
783
|
-
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
783
|
+
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/delete.ts)_
|
|
784
784
|
|
|
785
785
|
## `apollo file download`
|
|
786
786
|
|
|
@@ -808,7 +808,7 @@ EXAMPLES
|
|
|
808
808
|
```
|
|
809
809
|
|
|
810
810
|
_See code:
|
|
811
|
-
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
811
|
+
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/download.ts)_
|
|
812
812
|
|
|
813
813
|
## `apollo file get`
|
|
814
814
|
|
|
@@ -835,7 +835,7 @@ EXAMPLES
|
|
|
835
835
|
```
|
|
836
836
|
|
|
837
837
|
_See code:
|
|
838
|
-
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
838
|
+
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/get.ts)_
|
|
839
839
|
|
|
840
840
|
## `apollo file upload INPUT-FILE`
|
|
841
841
|
|
|
@@ -872,7 +872,7 @@ EXAMPLES
|
|
|
872
872
|
```
|
|
873
873
|
|
|
874
874
|
_See code:
|
|
875
|
-
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
875
|
+
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/upload.ts)_
|
|
876
876
|
|
|
877
877
|
## `apollo help [COMMANDS]`
|
|
878
878
|
|
|
@@ -919,7 +919,7 @@ EXAMPLES
|
|
|
919
919
|
```
|
|
920
920
|
|
|
921
921
|
_See code:
|
|
922
|
-
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
922
|
+
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_
|
|
923
923
|
|
|
924
924
|
## `apollo jbrowse set-config INPUTFILE`
|
|
925
925
|
|
|
@@ -948,7 +948,7 @@ EXAMPLES
|
|
|
948
948
|
```
|
|
949
949
|
|
|
950
950
|
_See code:
|
|
951
|
-
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
951
|
+
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_
|
|
952
952
|
|
|
953
953
|
## `apollo login`
|
|
954
954
|
|
|
@@ -987,7 +987,7 @@ EXAMPLES
|
|
|
987
987
|
```
|
|
988
988
|
|
|
989
989
|
_See code:
|
|
990
|
-
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
990
|
+
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/login.ts)_
|
|
991
991
|
|
|
992
992
|
## `apollo logout`
|
|
993
993
|
|
|
@@ -1017,7 +1017,7 @@ EXAMPLES
|
|
|
1017
1017
|
```
|
|
1018
1018
|
|
|
1019
1019
|
_See code:
|
|
1020
|
-
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
1020
|
+
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/logout.ts)_
|
|
1021
1021
|
|
|
1022
1022
|
## `apollo refseq add-alias INPUT-FILE`
|
|
1023
1023
|
|
|
@@ -1048,7 +1048,7 @@ EXAMPLES
|
|
|
1048
1048
|
```
|
|
1049
1049
|
|
|
1050
1050
|
_See code:
|
|
1051
|
-
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
1051
|
+
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/refseq/add-alias.ts)_
|
|
1052
1052
|
|
|
1053
1053
|
## `apollo refseq get`
|
|
1054
1054
|
|
|
@@ -1080,7 +1080,7 @@ EXAMPLES
|
|
|
1080
1080
|
```
|
|
1081
1081
|
|
|
1082
1082
|
_See code:
|
|
1083
|
-
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
1083
|
+
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/refseq/get.ts)_
|
|
1084
1084
|
|
|
1085
1085
|
## `apollo status`
|
|
1086
1086
|
|
|
@@ -1102,7 +1102,7 @@ DESCRIPTION
|
|
|
1102
1102
|
```
|
|
1103
1103
|
|
|
1104
1104
|
_See code:
|
|
1105
|
-
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
1105
|
+
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/status.ts)_
|
|
1106
1106
|
|
|
1107
1107
|
## `apollo user get`
|
|
1108
1108
|
|
|
@@ -1138,6 +1138,6 @@ EXAMPLES
|
|
|
1138
1138
|
```
|
|
1139
1139
|
|
|
1140
1140
|
_See code:
|
|
1141
|
-
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.1
|
|
1141
|
+
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/user/get.ts)_
|
|
1142
1142
|
|
|
1143
1143
|
<!-- commandsstop -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
|
-
import
|
|
3
|
+
import path from 'node:path';
|
|
4
4
|
import { Args, Flags } from '@oclif/core';
|
|
5
5
|
import { ObjectId } from 'bson';
|
|
6
6
|
import { FileCommand } from '../../fileCommand.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { expect, test } from '@oclif/test';
|
|
5
5
|
import { CONFIG_FILE, TEST_DATA_DIR, VERBOSE, copyFile, } from '../../test/fixtures.js';
|
|
@@ -15,7 +15,7 @@ describe.skip('apollo assembly get: Fail without token', () => {
|
|
|
15
15
|
const cmd = ['assembly:get'];
|
|
16
16
|
test
|
|
17
17
|
.stderr()
|
|
18
|
-
.command(cmd, { root: dirname(dirname(__dirname)) })
|
|
18
|
+
.command(cmd, { root: path.dirname(path.dirname(__dirname)) })
|
|
19
19
|
.exit(1)
|
|
20
20
|
.do((output) => expect(output.stderr).to.contain('Profile "default" has no access token'))
|
|
21
21
|
.do((output) => expect(output.stderr).to.not.contain(' at async ')) // Don't print error stack
|
|
@@ -32,7 +32,7 @@ describe.skip('apollo assembly get: Get assemblies as YAML string', () => {
|
|
|
32
32
|
const cmd = ['assembly:get'];
|
|
33
33
|
test
|
|
34
34
|
.stdout()
|
|
35
|
-
.command(cmd, { root: dirname(dirname(__dirname)) })
|
|
35
|
+
.command(cmd, { root: path.dirname(path.dirname(__dirname)) })
|
|
36
36
|
.it(cmd.join(' '), (output) => {
|
|
37
37
|
JSON.parse(output.stdout);
|
|
38
38
|
});
|
|
@@ -42,7 +42,7 @@ describe.skip('apollo assembly get: Test nock', () => {
|
|
|
42
42
|
test
|
|
43
43
|
.stdout()
|
|
44
44
|
.nock('http://127.0.0.1:3999', (api) => api.persist().get('/assemblies').reply(200, { stuff: 'foo' }))
|
|
45
|
-
.command(cmd, { root: dirname(dirname(__dirname)) })
|
|
45
|
+
.command(cmd, { root: path.dirname(path.dirname(__dirname)) })
|
|
46
46
|
.it(cmd.join(' '), (output) => {
|
|
47
47
|
console.error(output.stdout);
|
|
48
48
|
// const out = JSON.parse(output.stdout)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { test } from '@oclif/test';
|
|
5
5
|
import { CONFIG_FILE, TEST_DATA_DIR, VERBOSE, copyFile, } from '../../test/fixtures.js';
|
|
@@ -15,7 +15,7 @@ describe.skip('apollo change get: Get changes as YAML string', () => {
|
|
|
15
15
|
const cmd = ['change:get'];
|
|
16
16
|
test
|
|
17
17
|
.stdout()
|
|
18
|
-
.command(cmd, { root: dirname(dirname(__dirname)) })
|
|
18
|
+
.command(cmd, { root: path.dirname(path.dirname(__dirname)) })
|
|
19
19
|
.it(cmd.join(' '), (output) => {
|
|
20
20
|
JSON.parse(output.stdout);
|
|
21
21
|
});
|
|
@@ -71,7 +71,7 @@ to retrive the parent ID of interest and to populate the child feature with attr
|
|
|
71
71
|
}
|
|
72
72
|
const res = await queryApollo(address, accessToken, 'refSeqs');
|
|
73
73
|
const refSeqs = (await res.json());
|
|
74
|
-
const { refSeq } = parentFeature;
|
|
74
|
+
const { refSeq, _id } = parentFeature;
|
|
75
75
|
let assembly = '';
|
|
76
76
|
for (const x of refSeqs) {
|
|
77
77
|
if (x['_id'] === refSeq) {
|
|
@@ -81,8 +81,7 @@ to retrive the parent ID of interest and to populate the child feature with attr
|
|
|
81
81
|
}
|
|
82
82
|
const change = {
|
|
83
83
|
typeName: 'AddFeatureChange',
|
|
84
|
-
|
|
85
|
-
changedIds: [parentFeature._id],
|
|
84
|
+
changedIds: [_id],
|
|
86
85
|
assembly,
|
|
87
86
|
addedFeature: {
|
|
88
87
|
_id: new ObjectId().toHexString(),
|
|
@@ -91,8 +90,7 @@ to retrive the parent ID of interest and to populate the child feature with attr
|
|
|
91
90
|
max,
|
|
92
91
|
type,
|
|
93
92
|
},
|
|
94
|
-
|
|
95
|
-
parentFeatureId: parentFeature._id,
|
|
93
|
+
parentFeatureId: _id,
|
|
96
94
|
};
|
|
97
95
|
const url = new URL(localhostToAddress(`${address}/changes`));
|
|
98
96
|
const auth = {
|
|
@@ -46,6 +46,7 @@ export default class Upload extends FileCommand {
|
|
|
46
46
|
const { args, flags } = await this.parse(Upload);
|
|
47
47
|
const access = await this.getAccess();
|
|
48
48
|
let { type } = flags;
|
|
49
|
+
const { gzip, decompressed } = flags;
|
|
49
50
|
if (type === undefined) {
|
|
50
51
|
const hasGzipExt = args['input-file'].endsWith('.gz');
|
|
51
52
|
const infile = args['input-file'].replace(/\.gz$/, '');
|
|
@@ -69,12 +70,10 @@ export default class Upload extends FileCommand {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
let isGzip = args['input-file'].endsWith('.gz');
|
|
72
|
-
|
|
73
|
-
if (flags.gzip) {
|
|
73
|
+
if (gzip) {
|
|
74
74
|
isGzip = true;
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
if (flags.decompressed) {
|
|
76
|
+
if (decompressed) {
|
|
78
77
|
isGzip = false;
|
|
79
78
|
}
|
|
80
79
|
this.logToStderr(`Input is gzip'd: ${isGzip}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
-
import
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { expect, test } from '@oclif/test';
|
|
5
5
|
import { CONFIG_FILE, TEST_DATA_DIR, VERBOSE, copyFile, } from '../../test/fixtures.js';
|
|
@@ -15,7 +15,7 @@ describe.skip('apollo user get: Get users as YAML string', () => {
|
|
|
15
15
|
const cmd = ['user:get'];
|
|
16
16
|
test
|
|
17
17
|
.stdout()
|
|
18
|
-
.command(cmd, { root: dirname(dirname(__dirname)) })
|
|
18
|
+
.command(cmd, { root: path.dirname(path.dirname(__dirname)) })
|
|
19
19
|
.it(cmd.join(' '), (output) => {
|
|
20
20
|
const str = JSON.stringify(JSON.parse(output.stdout));
|
|
21
21
|
expect(str).contain('username');
|
package/dist/fileCommand.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -231,7 +231,12 @@ export const generatePkceChallenge = () => {
|
|
|
231
231
|
export const waitFor = (eventName, emitter) => {
|
|
232
232
|
const promise = new Promise((resolve, reject) => {
|
|
233
233
|
const handleEvent = (eventData) => {
|
|
234
|
-
eventData instanceof Error
|
|
234
|
+
if (eventData instanceof Error) {
|
|
235
|
+
reject(eventData);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
resolve(eventData);
|
|
239
|
+
}
|
|
235
240
|
emitter.removeListener(eventName, handleEvent);
|
|
236
241
|
};
|
|
237
242
|
emitter.addListener(eventName, handleEvent);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Command line interface for the Apollo annotation server",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"yaml": "^2.3.4"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@apollo-annotation/mst": "^0.1
|
|
88
|
-
"@apollo-annotation/shared": "^0.1
|
|
87
|
+
"@apollo-annotation/mst": "^0.2.1",
|
|
88
|
+
"@apollo-annotation/shared": "^0.2.1",
|
|
89
89
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
90
90
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
91
91
|
"@oclif/test": "^3.1.3",
|