@apollo-annotation/cli 0.3.5 → 0.3.6
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 +34 -34
- package/dist/baseCommand.d.ts +1 -1
- package/dist/commands/export/gff3.js +1 -1
- package/dist/commands/feature/add-child.js +0 -2
- package/dist/commands/feature/search.js +0 -1
- package/dist/commands/jbrowse/set-config.js +1 -1
- package/dist/commands/refseq/add-alias.js +2 -2
- package/dist/test/test.js +7 -8
- package/dist/test/test_docker.js +2 -2
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +1 -1
- package/oclif.manifest.json +46 -46
- package/package.json +4 -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.3.
|
|
19
|
+
@apollo-annotation/cli/0.3.6 linux-x64 node-v18.20.8
|
|
20
20
|
$ apollo --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ apollo COMMAND
|
|
@@ -114,7 +114,7 @@ EXAMPLES
|
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
_See code:
|
|
117
|
-
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
117
|
+
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_
|
|
118
118
|
|
|
119
119
|
## `apollo assembly add-from-gff INPUT-FILE`
|
|
120
120
|
|
|
@@ -150,7 +150,7 @@ EXAMPLES
|
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
_See code:
|
|
153
|
-
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
153
|
+
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_
|
|
154
154
|
|
|
155
155
|
## `apollo assembly check`
|
|
156
156
|
|
|
@@ -192,7 +192,7 @@ EXAMPLES
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
_See code:
|
|
195
|
-
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
195
|
+
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/check.ts)_
|
|
196
196
|
|
|
197
197
|
## `apollo assembly delete`
|
|
198
198
|
|
|
@@ -220,7 +220,7 @@ EXAMPLES
|
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
_See code:
|
|
223
|
-
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
223
|
+
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/delete.ts)_
|
|
224
224
|
|
|
225
225
|
## `apollo assembly get`
|
|
226
226
|
|
|
@@ -242,7 +242,7 @@ DESCRIPTION
|
|
|
242
242
|
```
|
|
243
243
|
|
|
244
244
|
_See code:
|
|
245
|
-
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
245
|
+
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/get.ts)_
|
|
246
246
|
|
|
247
247
|
## `apollo assembly sequence`
|
|
248
248
|
|
|
@@ -277,7 +277,7 @@ EXAMPLES
|
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
_See code:
|
|
280
|
-
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
280
|
+
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/assembly/sequence.ts)_
|
|
281
281
|
|
|
282
282
|
## `apollo change get`
|
|
283
283
|
|
|
@@ -301,7 +301,7 @@ DESCRIPTION
|
|
|
301
301
|
```
|
|
302
302
|
|
|
303
303
|
_See code:
|
|
304
|
-
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
304
|
+
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/change/get.ts)_
|
|
305
305
|
|
|
306
306
|
## `apollo config [KEY] [VALUE]`
|
|
307
307
|
|
|
@@ -353,7 +353,7 @@ EXAMPLES
|
|
|
353
353
|
```
|
|
354
354
|
|
|
355
355
|
_See code:
|
|
356
|
-
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
356
|
+
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/config.ts)_
|
|
357
357
|
|
|
358
358
|
## `apollo export gff3 ASSEMBLY`
|
|
359
359
|
|
|
@@ -381,7 +381,7 @@ EXAMPLES
|
|
|
381
381
|
```
|
|
382
382
|
|
|
383
383
|
_See code:
|
|
384
|
-
[src/commands/export/gff3.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
384
|
+
[src/commands/export/gff3.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/export/gff3.ts)_
|
|
385
385
|
|
|
386
386
|
## `apollo feature add-child`
|
|
387
387
|
|
|
@@ -412,7 +412,7 @@ EXAMPLES
|
|
|
412
412
|
```
|
|
413
413
|
|
|
414
414
|
_See code:
|
|
415
|
-
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
415
|
+
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/add-child.ts)_
|
|
416
416
|
|
|
417
417
|
## `apollo feature check`
|
|
418
418
|
|
|
@@ -445,7 +445,7 @@ EXAMPLES
|
|
|
445
445
|
```
|
|
446
446
|
|
|
447
447
|
_See code:
|
|
448
|
-
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
448
|
+
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/check.ts)_
|
|
449
449
|
|
|
450
450
|
## `apollo feature copy`
|
|
451
451
|
|
|
@@ -476,7 +476,7 @@ EXAMPLES
|
|
|
476
476
|
```
|
|
477
477
|
|
|
478
478
|
_See code:
|
|
479
|
-
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
479
|
+
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/copy.ts)_
|
|
480
480
|
|
|
481
481
|
## `apollo feature delete`
|
|
482
482
|
|
|
@@ -500,7 +500,7 @@ DESCRIPTION
|
|
|
500
500
|
```
|
|
501
501
|
|
|
502
502
|
_See code:
|
|
503
|
-
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
503
|
+
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/delete.ts)_
|
|
504
504
|
|
|
505
505
|
## `apollo feature edit`
|
|
506
506
|
|
|
@@ -542,7 +542,7 @@ EXAMPLES
|
|
|
542
542
|
```
|
|
543
543
|
|
|
544
544
|
_See code:
|
|
545
|
-
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
545
|
+
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/edit.ts)_
|
|
546
546
|
|
|
547
547
|
## `apollo feature edit-attribute`
|
|
548
548
|
|
|
@@ -582,7 +582,7 @@ EXAMPLES
|
|
|
582
582
|
```
|
|
583
583
|
|
|
584
584
|
_See code:
|
|
585
|
-
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
585
|
+
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
|
|
586
586
|
|
|
587
587
|
## `apollo feature edit-coords`
|
|
588
588
|
|
|
@@ -616,7 +616,7 @@ EXAMPLES
|
|
|
616
616
|
```
|
|
617
617
|
|
|
618
618
|
_See code:
|
|
619
|
-
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
619
|
+
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
|
|
620
620
|
|
|
621
621
|
## `apollo feature edit-type`
|
|
622
622
|
|
|
@@ -640,7 +640,7 @@ DESCRIPTION
|
|
|
640
640
|
```
|
|
641
641
|
|
|
642
642
|
_See code:
|
|
643
|
-
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
643
|
+
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/edit-type.ts)_
|
|
644
644
|
|
|
645
645
|
## `apollo feature get`
|
|
646
646
|
|
|
@@ -674,7 +674,7 @@ EXAMPLES
|
|
|
674
674
|
```
|
|
675
675
|
|
|
676
676
|
_See code:
|
|
677
|
-
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
677
|
+
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/get.ts)_
|
|
678
678
|
|
|
679
679
|
## `apollo feature get-id`
|
|
680
680
|
|
|
@@ -702,7 +702,7 @@ EXAMPLES
|
|
|
702
702
|
```
|
|
703
703
|
|
|
704
704
|
_See code:
|
|
705
|
-
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
705
|
+
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/get-id.ts)_
|
|
706
706
|
|
|
707
707
|
## `apollo feature import INPUT-FILE`
|
|
708
708
|
|
|
@@ -733,7 +733,7 @@ EXAMPLES
|
|
|
733
733
|
```
|
|
734
734
|
|
|
735
735
|
_See code:
|
|
736
|
-
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
736
|
+
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/import.ts)_
|
|
737
737
|
|
|
738
738
|
## `apollo feature search`
|
|
739
739
|
|
|
@@ -784,7 +784,7 @@ EXAMPLES
|
|
|
784
784
|
```
|
|
785
785
|
|
|
786
786
|
_See code:
|
|
787
|
-
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
787
|
+
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/feature/search.ts)_
|
|
788
788
|
|
|
789
789
|
## `apollo file delete`
|
|
790
790
|
|
|
@@ -811,7 +811,7 @@ EXAMPLES
|
|
|
811
811
|
```
|
|
812
812
|
|
|
813
813
|
_See code:
|
|
814
|
-
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
814
|
+
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/file/delete.ts)_
|
|
815
815
|
|
|
816
816
|
## `apollo file download`
|
|
817
817
|
|
|
@@ -839,7 +839,7 @@ EXAMPLES
|
|
|
839
839
|
```
|
|
840
840
|
|
|
841
841
|
_See code:
|
|
842
|
-
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
842
|
+
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/file/download.ts)_
|
|
843
843
|
|
|
844
844
|
## `apollo file get`
|
|
845
845
|
|
|
@@ -866,7 +866,7 @@ EXAMPLES
|
|
|
866
866
|
```
|
|
867
867
|
|
|
868
868
|
_See code:
|
|
869
|
-
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
869
|
+
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/file/get.ts)_
|
|
870
870
|
|
|
871
871
|
## `apollo file upload INPUT-FILE`
|
|
872
872
|
|
|
@@ -903,7 +903,7 @@ EXAMPLES
|
|
|
903
903
|
```
|
|
904
904
|
|
|
905
905
|
_See code:
|
|
906
|
-
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
906
|
+
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/file/upload.ts)_
|
|
907
907
|
|
|
908
908
|
## `apollo help [COMMANDS]`
|
|
909
909
|
|
|
@@ -950,7 +950,7 @@ EXAMPLES
|
|
|
950
950
|
```
|
|
951
951
|
|
|
952
952
|
_See code:
|
|
953
|
-
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
953
|
+
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_
|
|
954
954
|
|
|
955
955
|
## `apollo jbrowse set-config INPUTFILE`
|
|
956
956
|
|
|
@@ -979,7 +979,7 @@ EXAMPLES
|
|
|
979
979
|
```
|
|
980
980
|
|
|
981
981
|
_See code:
|
|
982
|
-
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
982
|
+
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_
|
|
983
983
|
|
|
984
984
|
## `apollo login`
|
|
985
985
|
|
|
@@ -1018,7 +1018,7 @@ EXAMPLES
|
|
|
1018
1018
|
```
|
|
1019
1019
|
|
|
1020
1020
|
_See code:
|
|
1021
|
-
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1021
|
+
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/login.ts)_
|
|
1022
1022
|
|
|
1023
1023
|
## `apollo logout`
|
|
1024
1024
|
|
|
@@ -1048,7 +1048,7 @@ EXAMPLES
|
|
|
1048
1048
|
```
|
|
1049
1049
|
|
|
1050
1050
|
_See code:
|
|
1051
|
-
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1051
|
+
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/logout.ts)_
|
|
1052
1052
|
|
|
1053
1053
|
## `apollo refseq add-alias INPUT-FILE`
|
|
1054
1054
|
|
|
@@ -1079,7 +1079,7 @@ EXAMPLES
|
|
|
1079
1079
|
```
|
|
1080
1080
|
|
|
1081
1081
|
_See code:
|
|
1082
|
-
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1082
|
+
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/refseq/add-alias.ts)_
|
|
1083
1083
|
|
|
1084
1084
|
## `apollo refseq get`
|
|
1085
1085
|
|
|
@@ -1111,7 +1111,7 @@ EXAMPLES
|
|
|
1111
1111
|
```
|
|
1112
1112
|
|
|
1113
1113
|
_See code:
|
|
1114
|
-
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1114
|
+
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/refseq/get.ts)_
|
|
1115
1115
|
|
|
1116
1116
|
## `apollo status`
|
|
1117
1117
|
|
|
@@ -1133,7 +1133,7 @@ DESCRIPTION
|
|
|
1133
1133
|
```
|
|
1134
1134
|
|
|
1135
1135
|
_See code:
|
|
1136
|
-
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1136
|
+
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/status.ts)_
|
|
1137
1137
|
|
|
1138
1138
|
## `apollo user get`
|
|
1139
1139
|
|
|
@@ -1169,6 +1169,6 @@ EXAMPLES
|
|
|
1169
1169
|
```
|
|
1170
1170
|
|
|
1171
1171
|
_See code:
|
|
1172
|
-
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.
|
|
1172
|
+
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.6/packages/apollo-cli/src/commands/user/get.ts)_
|
|
1173
1173
|
|
|
1174
1174
|
<!-- commandsstop -->
|
package/dist/baseCommand.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command, Interfaces } from '@oclif/core';
|
|
1
|
+
import { Command, type Interfaces } from '@oclif/core';
|
|
2
2
|
export type Flags<T extends typeof Command> = Interfaces.InferredFlags<(typeof BaseCommand)['baseFlags'] & T['flags']>;
|
|
3
3
|
export type Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>;
|
|
4
4
|
export declare abstract class BaseCommand<T extends typeof Command> extends Command {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Readable } from 'node:stream';
|
|
1
2
|
import { Args, Flags } from '@oclif/core';
|
|
2
3
|
import { fetch } from 'undici';
|
|
3
4
|
import { BaseCommand } from '../../baseCommand.js';
|
|
4
5
|
import { convertAssemblyNameToId, createFetchErrorMessage, idReader, localhostToAddress, } from '../../utils.js';
|
|
5
|
-
import { Readable } from 'node:stream';
|
|
6
6
|
export default class Get extends BaseCommand {
|
|
7
7
|
static description = 'Export the annotations for an assembly to stdout as gff3';
|
|
8
8
|
static examples = [
|
|
@@ -3,7 +3,7 @@ import { Args } from '@oclif/core';
|
|
|
3
3
|
import { Agent, fetch } from 'undici';
|
|
4
4
|
import { ConfigError } from '../../ApolloConf.js';
|
|
5
5
|
import { BaseCommand } from '../../baseCommand.js';
|
|
6
|
-
import {
|
|
6
|
+
import { createFetchErrorMessage, localhostToAddress } from '../../utils.js';
|
|
7
7
|
export default class SetConfig extends BaseCommand {
|
|
8
8
|
static summary = 'Set JBrowse configuration';
|
|
9
9
|
static description = 'Set JBrowse configuration in Apollo collaboration server';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
|
-
import { Agent, fetch } from 'undici';
|
|
3
2
|
import { Args, Flags } from '@oclif/core';
|
|
3
|
+
import { Agent, fetch } from 'undici';
|
|
4
|
+
import { ConfigError } from '../../ApolloConf.js';
|
|
4
5
|
import { BaseCommand } from '../../baseCommand.js';
|
|
5
6
|
import { createFetchErrorMessage, localhostToAddress, queryApollo, } from '../../utils.js';
|
|
6
|
-
import { ConfigError } from '../../ApolloConf.js';
|
|
7
7
|
export default class AddRefNameAlias extends BaseCommand {
|
|
8
8
|
static summary = 'Add reference name aliases from a file';
|
|
9
9
|
static description = 'Reference name aliasing is a process to make chromosomes that are named slightly differently but which refer to the same thing render properly. This command reads a file with reference name aliases and adds them to the database.';
|
package/dist/test/test.js
CHANGED
|
@@ -16,11 +16,10 @@
|
|
|
16
16
|
* yarn test:cli --test-name-pattern='Print help|Feature get'
|
|
17
17
|
*/
|
|
18
18
|
import assert from 'node:assert';
|
|
19
|
-
import { before, beforeEach, afterEach, describe } from 'node:test';
|
|
20
|
-
import { Shell } from './utils.js';
|
|
21
|
-
import fs from 'node:fs';
|
|
22
19
|
import * as crypto from 'node:crypto';
|
|
23
|
-
import
|
|
20
|
+
import fs from 'node:fs';
|
|
21
|
+
import { afterEach, before, beforeEach, describe } from 'node:test';
|
|
22
|
+
import { Shell } from './utils.js';
|
|
24
23
|
const apollo = 'yarn dev';
|
|
25
24
|
const P = '--profile testAdmin';
|
|
26
25
|
let configFile = '';
|
|
@@ -28,7 +27,7 @@ let configFileBak = '';
|
|
|
28
27
|
void describe('Test CLI', () => {
|
|
29
28
|
before(() => {
|
|
30
29
|
configFile = new Shell(`${apollo} config --get-config-file`).stdout.trim();
|
|
31
|
-
configFileBak = `${
|
|
30
|
+
configFileBak = `${configFile}.bak`;
|
|
32
31
|
if (fs.existsSync(configFileBak)) {
|
|
33
32
|
throw new Error(`Backup config file ${configFileBak} already exists. If safe to do so, delete it before testing`);
|
|
34
33
|
}
|
|
@@ -308,12 +307,12 @@ void describe('Test CLI', () => {
|
|
|
308
307
|
assert.ok(p.returncode != 0);
|
|
309
308
|
});
|
|
310
309
|
void globalThis.itName('Detect missing external index', () => {
|
|
311
|
-
const p = new Shell(`${apollo} assembly add-from-fasta ${P} -a vv1 -f
|
|
310
|
+
const p = new Shell(`${apollo} assembly add-from-fasta ${P} -a vv1 -f http://localhost:3131/tiny.fasta`, false);
|
|
312
311
|
assert.ok(p.returncode != 0);
|
|
313
312
|
assert.ok(p.stderr.includes('Index file') && p.stderr.includes('does not exist'));
|
|
314
313
|
});
|
|
315
314
|
void globalThis.itName('Editable sequence not allowed with external source', () => {
|
|
316
|
-
const cmd = `${apollo} assembly add-from-fasta ${P} -a vv1 -f
|
|
315
|
+
const cmd = `${apollo} assembly add-from-fasta ${P} -a vv1 -f http://localhost:3131/tiny.fasta.gz`;
|
|
317
316
|
new Shell(cmd);
|
|
318
317
|
const p = new Shell(`${cmd} -e`, false);
|
|
319
318
|
assert.ok(p.returncode != 0);
|
|
@@ -983,7 +982,7 @@ void describe('Test CLI', () => {
|
|
|
983
982
|
assert.ok(!gff.includes('##FASTA\n'));
|
|
984
983
|
});
|
|
985
984
|
void globalThis.itName('Export gff3 from external assembly', () => {
|
|
986
|
-
new Shell(`${apollo} assembly add-from-fasta ${P}
|
|
985
|
+
new Shell(`${apollo} assembly add-from-fasta ${P} http://localhost:3131/tiny.fasta.gz -a vv1 -f`);
|
|
987
986
|
new Shell(`${apollo} feature import ${P} test_data/tiny.fasta.gff3 -a vv1`);
|
|
988
987
|
let p = new Shell(`${apollo} export gff3 ${P} vv1 --include-fasta`);
|
|
989
988
|
let gff = p.stdout;
|
package/dist/test/test_docker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import assert from 'node:assert';
|
|
2
|
-
import { after, before, describe } from 'node:test';
|
|
3
|
-
import { Shell } from './utils.js';
|
|
4
2
|
import fs from 'node:fs';
|
|
5
3
|
import path from 'node:path';
|
|
4
|
+
import { after, before, describe } from 'node:test';
|
|
5
|
+
import { Shell } from './utils.js';
|
|
6
6
|
const hostTmpDir = path.resolve('tmpTestDocker');
|
|
7
7
|
const hostDataDir = path.resolve('test_data');
|
|
8
8
|
const apollo = `docker run --network host -v ${hostTmpDir}:/root/.config/apollo-cli -v ${hostDataDir}:/data apollo`;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import EventEmitter from 'node:events';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type EventEmitter from 'node:events';
|
|
2
|
+
import { type ApolloAssemblySnapshot } from '@apollo-annotation/mst';
|
|
3
|
+
import { type SerializedAddAssemblyAndFeaturesFromFileChange, type SerializedAddAssemblyFromExternalChange, type SerializedAddAssemblyFromFileChange } from '@apollo-annotation/shared';
|
|
4
|
+
import { type Response } from 'undici';
|
|
4
5
|
import { ApolloConf } from './ApolloConf.js';
|
|
5
|
-
import { ApolloAssemblySnapshot } from '@apollo-annotation/mst';
|
|
6
6
|
export declare const CLI_SERVER_ADDRESS = "http://127.0.0.1:5657";
|
|
7
7
|
export declare const CLI_SERVER_ADDRESS_CALLBACK = "http://127.0.0.1:5657/auth/callback";
|
|
8
8
|
export declare class CheckError extends Error {
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as crypto from 'node:crypto';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
|
-
import {
|
|
3
|
+
import { stderr, stdin } from 'node:process';
|
|
4
4
|
import { Agent, fetch } from 'undici';
|
|
5
5
|
import { ApolloConf, ConfigError } from './ApolloConf.js';
|
|
6
6
|
export const CLI_SERVER_ADDRESS = 'http://127.0.0.1:5657';
|
package/oclif.manifest.json
CHANGED
|
@@ -738,6 +738,51 @@
|
|
|
738
738
|
"gff3.js"
|
|
739
739
|
]
|
|
740
740
|
},
|
|
741
|
+
"change:get": {
|
|
742
|
+
"aliases": [],
|
|
743
|
+
"args": {},
|
|
744
|
+
"description": "Return the change log in json format. Note that when an assembly is deleted the link between common name and ID is lost (it can still be recovered by inspecting the change log but at present this task is left to the user). In such cases you need to use the assembly ID.",
|
|
745
|
+
"flags": {
|
|
746
|
+
"profile": {
|
|
747
|
+
"description": "Use credentials from this profile",
|
|
748
|
+
"name": "profile",
|
|
749
|
+
"hasDynamicHelp": false,
|
|
750
|
+
"multiple": false,
|
|
751
|
+
"type": "option"
|
|
752
|
+
},
|
|
753
|
+
"config-file": {
|
|
754
|
+
"description": "Use this config file (mostly for testing)",
|
|
755
|
+
"name": "config-file",
|
|
756
|
+
"hasDynamicHelp": false,
|
|
757
|
+
"multiple": false,
|
|
758
|
+
"type": "option"
|
|
759
|
+
},
|
|
760
|
+
"assembly": {
|
|
761
|
+
"char": "a",
|
|
762
|
+
"description": "Get changes only for these assembly names or IDs (but see description)",
|
|
763
|
+
"name": "assembly",
|
|
764
|
+
"hasDynamicHelp": false,
|
|
765
|
+
"multiple": true,
|
|
766
|
+
"type": "option"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"hasDynamicHelp": false,
|
|
770
|
+
"hiddenAliases": [],
|
|
771
|
+
"id": "change:get",
|
|
772
|
+
"pluginAlias": "@apollo-annotation/cli",
|
|
773
|
+
"pluginName": "@apollo-annotation/cli",
|
|
774
|
+
"pluginType": "core",
|
|
775
|
+
"strict": true,
|
|
776
|
+
"summary": "Get list of changes",
|
|
777
|
+
"enableJsonFlag": false,
|
|
778
|
+
"isESM": true,
|
|
779
|
+
"relativePath": [
|
|
780
|
+
"dist",
|
|
781
|
+
"commands",
|
|
782
|
+
"change",
|
|
783
|
+
"get.js"
|
|
784
|
+
]
|
|
785
|
+
},
|
|
741
786
|
"feature:add-child": {
|
|
742
787
|
"aliases": [],
|
|
743
788
|
"args": {},
|
|
@@ -1540,51 +1585,6 @@
|
|
|
1540
1585
|
"search.js"
|
|
1541
1586
|
]
|
|
1542
1587
|
},
|
|
1543
|
-
"change:get": {
|
|
1544
|
-
"aliases": [],
|
|
1545
|
-
"args": {},
|
|
1546
|
-
"description": "Return the change log in json format. Note that when an assembly is deleted the link between common name and ID is lost (it can still be recovered by inspecting the change log but at present this task is left to the user). In such cases you need to use the assembly ID.",
|
|
1547
|
-
"flags": {
|
|
1548
|
-
"profile": {
|
|
1549
|
-
"description": "Use credentials from this profile",
|
|
1550
|
-
"name": "profile",
|
|
1551
|
-
"hasDynamicHelp": false,
|
|
1552
|
-
"multiple": false,
|
|
1553
|
-
"type": "option"
|
|
1554
|
-
},
|
|
1555
|
-
"config-file": {
|
|
1556
|
-
"description": "Use this config file (mostly for testing)",
|
|
1557
|
-
"name": "config-file",
|
|
1558
|
-
"hasDynamicHelp": false,
|
|
1559
|
-
"multiple": false,
|
|
1560
|
-
"type": "option"
|
|
1561
|
-
},
|
|
1562
|
-
"assembly": {
|
|
1563
|
-
"char": "a",
|
|
1564
|
-
"description": "Get changes only for these assembly names or IDs (but see description)",
|
|
1565
|
-
"name": "assembly",
|
|
1566
|
-
"hasDynamicHelp": false,
|
|
1567
|
-
"multiple": true,
|
|
1568
|
-
"type": "option"
|
|
1569
|
-
}
|
|
1570
|
-
},
|
|
1571
|
-
"hasDynamicHelp": false,
|
|
1572
|
-
"hiddenAliases": [],
|
|
1573
|
-
"id": "change:get",
|
|
1574
|
-
"pluginAlias": "@apollo-annotation/cli",
|
|
1575
|
-
"pluginName": "@apollo-annotation/cli",
|
|
1576
|
-
"pluginType": "core",
|
|
1577
|
-
"strict": true,
|
|
1578
|
-
"summary": "Get list of changes",
|
|
1579
|
-
"enableJsonFlag": false,
|
|
1580
|
-
"isESM": true,
|
|
1581
|
-
"relativePath": [
|
|
1582
|
-
"dist",
|
|
1583
|
-
"commands",
|
|
1584
|
-
"change",
|
|
1585
|
-
"get.js"
|
|
1586
|
-
]
|
|
1587
|
-
},
|
|
1588
1588
|
"file:delete": {
|
|
1589
1589
|
"aliases": [],
|
|
1590
1590
|
"args": {},
|
|
@@ -2106,5 +2106,5 @@
|
|
|
2106
2106
|
]
|
|
2107
2107
|
}
|
|
2108
2108
|
},
|
|
2109
|
-
"version": "0.3.
|
|
2109
|
+
"version": "0.3.6"
|
|
2110
2110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo-annotation/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Command line interface for the Apollo annotation server",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"yaml": "^2.3.4"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@apollo-annotation/mst": "^0.3.
|
|
92
|
-
"@apollo-annotation/shared": "^0.3.
|
|
91
|
+
"@apollo-annotation/mst": "^0.3.6",
|
|
92
|
+
"@apollo-annotation/shared": "^0.3.6",
|
|
93
93
|
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
94
94
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
95
95
|
"@oclif/test": "^3.1.3",
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
"prettier": "^3.3.2",
|
|
108
108
|
"react-dom": "^18.2.0",
|
|
109
109
|
"rxjs": "^7.4.0",
|
|
110
|
+
"serve": "^14.0.1",
|
|
110
111
|
"shx": "^0.3.3",
|
|
111
112
|
"ts-node": "^10.3.0",
|
|
112
113
|
"tsx": "^4.6.2",
|