@apollo-annotation/cli 0.3.6 → 0.3.7

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
@@ -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.6 linux-x64 node-v18.20.8
19
+ @apollo-annotation/cli/0.3.7 linux-x64 node-v20.19.3
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.6/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_
117
+ [src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_
153
+ [src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/assembly/check.ts)_
195
+ [src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/assembly/delete.ts)_
223
+ [src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/assembly/get.ts)_
245
+ [src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/assembly/sequence.ts)_
280
+ [src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/change/get.ts)_
304
+ [src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/config.ts)_
356
+ [src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/export/gff3.ts)_
384
+ [src/commands/export/gff3.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/add-child.ts)_
415
+ [src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/check.ts)_
448
+ [src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/copy.ts)_
479
+ [src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/delete.ts)_
503
+ [src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/edit.ts)_
545
+ [src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
585
+ [src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
619
+ [src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/edit-type.ts)_
643
+ [src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/get.ts)_
677
+ [src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/get-id.ts)_
705
+ [src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/import.ts)_
736
+ [src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/feature/search.ts)_
787
+ [src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/file/delete.ts)_
814
+ [src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/file/download.ts)_
842
+ [src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/file/get.ts)_
869
+ [src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/file/upload.ts)_
906
+ [src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_
953
+ [src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_
982
+ [src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/login.ts)_
1021
+ [src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/logout.ts)_
1051
+ [src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/refseq/add-alias.ts)_
1082
+ [src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/refseq/get.ts)_
1114
+ [src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/status.ts)_
1136
+ [src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/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.6/packages/apollo-cli/src/commands/user/get.ts)_
1172
+ [src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.3.7/packages/apollo-cli/src/commands/user/get.ts)_
1173
1173
 
1174
1174
  <!-- commandsstop -->
@@ -62,31 +62,39 @@ terms to non-existing terms';
62
62
  if (featureJson.attributes === undefined) {
63
63
  featureJson.attributes = {};
64
64
  }
65
+ const oldAttributes = {};
66
+ for (const [key, val] of Object.entries(featureJson.attributes)) {
67
+ if (!val) {
68
+ continue;
69
+ }
70
+ oldAttributes[key] = [...val];
71
+ }
65
72
  if (flags.value === undefined && !flags.delete) {
66
- this.log(JSON.stringify(featureJson.attributes[flags.attribute]));
73
+ this.log(JSON.stringify(oldAttributes[flags.attribute]));
67
74
  return;
68
75
  }
76
+ const newAttributes = {};
77
+ for (const [key, val] of Object.entries(oldAttributes)) {
78
+ newAttributes[key] = [...val];
79
+ }
69
80
  if (flags.delete) {
70
81
  // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
71
- delete featureJson.attributes[flags.attribute];
82
+ delete newAttributes[flags.attribute];
83
+ }
84
+ else if (flags.value) {
85
+ newAttributes[flags.attribute] = flags.value;
72
86
  }
73
87
  else {
74
- featureJson.attributes[flags.attribute] = flags.value;
88
+ throw new Error(`Unexpected condition: value is "${flags.value}"`);
75
89
  }
76
90
  const assembly = await getAssemblyFromRefseq(access.address, access.accessToken, featureJson.refSeq);
77
- const attrs = {};
78
- for (const [key, val] of Object.entries(featureJson.attributes)) {
79
- if (!val) {
80
- continue;
81
- }
82
- attrs[key] = [...val];
83
- }
84
91
  const changeJson = {
85
92
  typeName: 'FeatureAttributeChange',
86
93
  changedIds: [featureId],
87
94
  assembly,
88
95
  featureId,
89
- attributes: attrs,
96
+ oldAttributes,
97
+ newAttributes,
90
98
  };
91
99
  const url = new URL(localhostToAddress(`${access.address}/changes`));
92
100
  const auth = {
@@ -6,6 +6,6 @@
6
6
  *
7
7
  * Run only matching pattern:
8
8
  *
9
- * yarn test:cli --test-name-pattern='Print help|Feature get'
9
+ * yarn tsx --test-name-pattern='Print help|Feature get' src/test/test.ts
10
10
  */
11
11
  export {};
package/dist/test/test.js CHANGED
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * Run only matching pattern:
15
15
  *
16
- * yarn test:cli --test-name-pattern='Print help|Feature get'
16
+ * yarn tsx --test-name-pattern='Print help|Feature get' src/test/test.ts
17
17
  */
18
18
  import assert from 'node:assert';
19
19
  import * as crypto from 'node:crypto';
@@ -421,7 +421,7 @@ void describe('Test CLI', () => {
421
421
  p = new Shell(`${apollo} feature get ${P} -r ${refseq} | jq '.[] | select(.type == "contig") | ._id'`);
422
422
  const fid = p.stdout.trim();
423
423
  // Edit existing attribute value
424
- p = new Shell(`${apollo} feature edit-attribute ${P} -i $${fid} -a source -v 'Eggs & Stuff'`);
424
+ p = new Shell(`${apollo} feature edit-attribute ${P} -i ${fid} -a source -v 'Eggs & Stuff'`);
425
425
  p = new Shell(`${apollo} feature edit-attribute ${P} -i ${fid} -a source`);
426
426
  let out = JSON.parse(p.stdout);
427
427
  assert.deepStrictEqual(out.at(0), `Eggs & Stuff`);
@@ -684,22 +684,10 @@
684
684
  "sequence.js"
685
685
  ]
686
686
  },
687
- "export:gff3": {
687
+ "change:get": {
688
688
  "aliases": [],
689
- "args": {
690
- "assembly": {
691
- "description": "Export annotations for this assembly name or id",
692
- "name": "assembly",
693
- "required": true
694
- }
695
- },
696
- "description": "Export the annotations for an assembly to stdout as gff3",
697
- "examples": [
698
- {
699
- "description": "Export annotations for myAssembly:",
700
- "command": "<%= config.bin %> <%= command.id %> myAssembly > out.gff3"
701
- }
702
- ],
689
+ "args": {},
690
+ "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.",
703
691
  "flags": {
704
692
  "profile": {
705
693
  "description": "Use credentials from this profile",
@@ -715,33 +703,48 @@
715
703
  "multiple": false,
716
704
  "type": "option"
717
705
  },
718
- "include-fasta": {
719
- "description": "Include fasta sequence in output",
720
- "name": "include-fasta",
721
- "allowNo": false,
722
- "type": "boolean"
706
+ "assembly": {
707
+ "char": "a",
708
+ "description": "Get changes only for these assembly names or IDs (but see description)",
709
+ "name": "assembly",
710
+ "hasDynamicHelp": false,
711
+ "multiple": true,
712
+ "type": "option"
723
713
  }
724
714
  },
725
715
  "hasDynamicHelp": false,
726
716
  "hiddenAliases": [],
727
- "id": "export:gff3",
717
+ "id": "change:get",
728
718
  "pluginAlias": "@apollo-annotation/cli",
729
719
  "pluginName": "@apollo-annotation/cli",
730
720
  "pluginType": "core",
731
721
  "strict": true,
722
+ "summary": "Get list of changes",
732
723
  "enableJsonFlag": false,
733
724
  "isESM": true,
734
725
  "relativePath": [
735
726
  "dist",
736
727
  "commands",
737
- "export",
738
- "gff3.js"
728
+ "change",
729
+ "get.js"
739
730
  ]
740
731
  },
741
- "change:get": {
732
+ "export:gff3": {
742
733
  "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.",
734
+ "args": {
735
+ "assembly": {
736
+ "description": "Export annotations for this assembly name or id",
737
+ "name": "assembly",
738
+ "required": true
739
+ }
740
+ },
741
+ "description": "Export the annotations for an assembly to stdout as gff3",
742
+ "examples": [
743
+ {
744
+ "description": "Export annotations for myAssembly:",
745
+ "command": "<%= config.bin %> <%= command.id %> myAssembly > out.gff3"
746
+ }
747
+ ],
745
748
  "flags": {
746
749
  "profile": {
747
750
  "description": "Use credentials from this profile",
@@ -757,30 +760,27 @@
757
760
  "multiple": false,
758
761
  "type": "option"
759
762
  },
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"
763
+ "include-fasta": {
764
+ "description": "Include fasta sequence in output",
765
+ "name": "include-fasta",
766
+ "allowNo": false,
767
+ "type": "boolean"
767
768
  }
768
769
  },
769
770
  "hasDynamicHelp": false,
770
771
  "hiddenAliases": [],
771
- "id": "change:get",
772
+ "id": "export:gff3",
772
773
  "pluginAlias": "@apollo-annotation/cli",
773
774
  "pluginName": "@apollo-annotation/cli",
774
775
  "pluginType": "core",
775
776
  "strict": true,
776
- "summary": "Get list of changes",
777
777
  "enableJsonFlag": false,
778
778
  "isESM": true,
779
779
  "relativePath": [
780
780
  "dist",
781
781
  "commands",
782
- "change",
783
- "get.js"
782
+ "export",
783
+ "gff3.js"
784
784
  ]
785
785
  },
786
786
  "feature:add-child": {
@@ -2106,5 +2106,5 @@
2106
2106
  ]
2107
2107
  }
2108
2108
  },
2109
- "version": "0.3.6"
2109
+ "version": "0.3.7"
2110
2110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollo-annotation/cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
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.6",
92
- "@apollo-annotation/shared": "^0.3.6",
91
+ "@apollo-annotation/mst": "^0.3.7",
92
+ "@apollo-annotation/shared": "^0.3.7",
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",