@jbrowse/cli 2.11.1 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,9 +67,9 @@ Add an assembly to a JBrowse 2 configuration
67
67
 
68
68
  ```
69
69
  USAGE
70
- $ jbrowse add-assembly SEQUENCE [-t indexedFasta|bgzipFasta|twoBit|chromSizes|custom] [-n <value>] [-a <value>]
71
- [--displayName <value>] [--faiLocation <value>] [--gziLocation <value>] [--refNameAliasesType aliases|custom
72
- --refNameAliases <value>] [--refNameColors <value>] [--target <value>] [--out <value>] [-h] [-l
70
+ $ jbrowse add-assembly SEQUENCE [-t indexedFasta|bgzipFasta|twoBit|chromSizes|custom] [-n <value>] [-a
71
+ <value>...] [--displayName <value>] [--faiLocation <value>] [--gziLocation <value>] [--refNameAliasesType
72
+ aliases|custom --refNameAliases <value>] [--refNameColors <value>] [--target <value>] [--out <value>] [-h] [-l
73
73
  copy|symlink|move|inPlace] [--skipCheck] [--overwrite] [-f]
74
74
 
75
75
  ARGUMENTS
@@ -205,7 +205,7 @@ EXAMPLES
205
205
  ```
206
206
 
207
207
  _See code:
208
- [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/add-assembly.ts)_
208
+ [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-assembly.ts)_
209
209
 
210
210
  ## `jbrowse add-connection CONNECTIONURLORPATH`
211
211
 
@@ -256,7 +256,7 @@ EXAMPLES
256
256
  ```
257
257
 
258
258
  _See code:
259
- [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/add-connection.ts)_
259
+ [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-connection.ts)_
260
260
 
261
261
  ## `jbrowse add-track TRACK`
262
262
 
@@ -337,7 +337,7 @@ EXAMPLES
337
337
  ```
338
338
 
339
339
  _See code:
340
- [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/add-track.ts)_
340
+ [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-track.ts)_
341
341
 
342
342
  ## `jbrowse add-track-json TRACK`
343
343
 
@@ -367,7 +367,7 @@ EXAMPLES
367
367
  ```
368
368
 
369
369
  _See code:
370
- [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/add-track-json.ts)_
370
+ [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-track-json.ts)_
371
371
 
372
372
  ## `jbrowse admin-server`
373
373
 
@@ -399,7 +399,7 @@ EXAMPLES
399
399
  ```
400
400
 
401
401
  _See code:
402
- [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/admin-server.ts)_
402
+ [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/admin-server.ts)_
403
403
 
404
404
  ## `jbrowse create LOCALPATH`
405
405
 
@@ -456,7 +456,7 @@ EXAMPLES
456
456
  ```
457
457
 
458
458
  _See code:
459
- [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/create.ts)_
459
+ [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/create.ts)_
460
460
 
461
461
  ## `jbrowse help [COMMAND]`
462
462
 
@@ -477,7 +477,7 @@ DESCRIPTION
477
477
  ```
478
478
 
479
479
  _See code:
480
- [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.21/src/commands/help.ts)_
480
+ [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.3/src/commands/help.ts)_
481
481
 
482
482
  ## `jbrowse make-pif FILE`
483
483
 
@@ -507,7 +507,7 @@ EXAMPLES
507
507
  ```
508
508
 
509
509
  _See code:
510
- [src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/make-pif.ts)_
510
+ [src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/make-pif.ts)_
511
511
 
512
512
  ## `jbrowse remove-track TRACK`
513
513
 
@@ -535,7 +535,7 @@ EXAMPLES
535
535
  ```
536
536
 
537
537
  _See code:
538
- [src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/remove-track.ts)_
538
+ [src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/remove-track.ts)_
539
539
 
540
540
  ## `jbrowse set-default-session`
541
541
 
@@ -549,7 +549,8 @@ FLAGS
549
549
  -c, --currentSession List out the current default session
550
550
  -h, --help Show CLI help.
551
551
  -n, --name=<value> [default: New Default Session] Give a name for the default session
552
- -s, --session=<value> set path to a file containing session in json format
552
+ -s, --session=<value> set path to a file containing session in json format (required, unless using
553
+ delete/currentSession flags)
553
554
  --delete Delete any existing default session.
554
555
  --out=<value> synonym for target
555
556
  --target=<value> path to config file in JB2 installation directory to write out to
@@ -558,17 +559,25 @@ DESCRIPTION
558
559
  Set a default session with views and tracks
559
560
 
560
561
  EXAMPLES
562
+ # set default session for the config.json in your current directory
563
+
561
564
  $ jbrowse set-default-session --session /path/to/default/session.json
562
565
 
563
- $ jbrowse set-default-session --target /path/to/jb2/installation/config.json
564
566
 
565
- $ jbrowse set-default-session --view LinearGenomeView, --name newName
567
+
568
+ # make session.json the defaultSession on the specified target config.json file
569
+
570
+ $ jbrowse set-default-session --target /path/to/jb2/installation/config.json --session session.json
571
+
572
+
573
+
574
+ # print current default session
566
575
 
567
576
  $ jbrowse set-default-session --currentSession # Prints out current default session
568
577
  ```
569
578
 
570
579
  _See code:
571
- [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/set-default-session.ts)_
580
+ [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/set-default-session.ts)_
572
581
 
573
582
  ## `jbrowse sort-gff FILE`
574
583
 
@@ -599,7 +608,7 @@ EXAMPLES
599
608
  ```
600
609
 
601
610
  _See code:
602
- [src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/sort-gff.ts)_
611
+ [src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/sort-gff.ts)_
603
612
 
604
613
  ## `jbrowse text-index`
605
614
 
@@ -608,8 +617,8 @@ Make a text-indexing file for any given track(s).
608
617
  ```
609
618
  USAGE
610
619
  $ jbrowse text-index [-h] [--tracks <value>] [--target <value>] [--out <value>] [--attributes <value>] [-a
611
- <value>] [--force] [-q] [--perTrack] [--exclude <value>] [--prefixSize <value>] [--file <value>] [--fileId <value>]
612
- [--dryrun]
620
+ <value>] [--force] [-q] [--perTrack] [--exclude <value>] [--prefixSize <value>] [--file <value>...] [--fileId
621
+ <value>...] [--dryrun]
613
622
 
614
623
  FLAGS
615
624
  -a, --assemblies=<value> Specify the assembl(ies) to create an index for. If unspecified, creates an index for each
@@ -666,7 +675,7 @@ EXAMPLES
666
675
  ```
667
676
 
668
677
  _See code:
669
- [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/text-index.ts)_
678
+ [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/text-index.ts)_
670
679
 
671
680
  ## `jbrowse upgrade [LOCALPATH]`
672
681
 
@@ -729,7 +738,7 @@ EXAMPLES
729
738
  ```
730
739
 
731
740
  _See code:
732
- [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.11.1/products/jbrowse-cli/src/commands/upgrade.ts)_
741
+ [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/upgrade.ts)_
733
742
 
734
743
  <!-- commandsstop -->
735
744
 
@@ -46,7 +46,7 @@ class Create extends base_1.default {
46
46
  async checkPath(userPath) {
47
47
  const allFiles = await fsPromises.readdir(userPath);
48
48
  if (allFiles.length > 0) {
49
- this.error(`${userPath} This directory has existing files and could cause conflicts with create. Please choose another directory or use the force flag to overwrite existing files`, { exit: 120 });
49
+ this.error(`This directory (${userPath}) has existing files and could cause conflicts with create. Please choose another directory or use the force flag to overwrite existing files`, { exit: 120 });
50
50
  }
51
51
  }
52
52
  async catch(error) {
@@ -25,7 +25,7 @@ class SetDefaultSession extends base_1.default {
25
25
  this.exit();
26
26
  }
27
27
  else if (!session) {
28
- this.error(`Please either provide a default session file`, { exit: 120 });
28
+ this.error(`Please provide a --session file`, { exit: 120 });
29
29
  }
30
30
  else if (session) {
31
31
  await this.writeJsonFile(this.target, {
@@ -59,15 +59,19 @@ class SetDefaultSession extends base_1.default {
59
59
  }
60
60
  SetDefaultSession.description = 'Set a default session with views and tracks';
61
61
  SetDefaultSession.examples = [
62
+ '# set default session for the config.json in your current directory',
62
63
  '$ jbrowse set-default-session --session /path/to/default/session.json',
63
- '$ jbrowse set-default-session --target /path/to/jb2/installation/config.json',
64
- '$ jbrowse set-default-session --view LinearGenomeView, --name newName',
64
+ '',
65
+ '# make session.json the defaultSession on the specified target config.json file',
66
+ '$ jbrowse set-default-session --target /path/to/jb2/installation/config.json --session session.json',
67
+ '',
68
+ '# print current default session',
65
69
  '$ jbrowse set-default-session --currentSession # Prints out current default session',
66
70
  ];
67
71
  SetDefaultSession.flags = {
68
72
  session: core_1.Flags.string({
69
73
  char: 's',
70
- description: 'set path to a file containing session in json format',
74
+ description: 'set path to a file containing session in json format (required, unless using delete/currentSession flags)',
71
75
  }),
72
76
  name: core_1.Flags.string({
73
77
  char: 'n',
@@ -783,15 +783,19 @@
783
783
  "args": {},
784
784
  "description": "Set a default session with views and tracks",
785
785
  "examples": [
786
+ "# set default session for the config.json in your current directory",
786
787
  "$ jbrowse set-default-session --session /path/to/default/session.json",
787
- "$ jbrowse set-default-session --target /path/to/jb2/installation/config.json",
788
- "$ jbrowse set-default-session --view LinearGenomeView, --name newName",
788
+ "",
789
+ "# make session.json the defaultSession on the specified target config.json file",
790
+ "$ jbrowse set-default-session --target /path/to/jb2/installation/config.json --session session.json",
791
+ "",
792
+ "# print current default session",
789
793
  "$ jbrowse set-default-session --currentSession # Prints out current default session"
790
794
  ],
791
795
  "flags": {
792
796
  "session": {
793
797
  "char": "s",
794
- "description": "set path to a file containing session in json format",
798
+ "description": "set path to a file containing session in json format (required, unless using delete/currentSession flags)",
795
799
  "name": "session",
796
800
  "hasDynamicHelp": false,
797
801
  "multiple": false,
@@ -1123,5 +1127,5 @@
1123
1127
  ]
1124
1128
  }
1125
1129
  },
1126
- "version": "2.11.1"
1130
+ "version": "2.12.0"
1127
1131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/cli",
3
- "version": "2.11.1",
3
+ "version": "2.12.0",
4
4
  "description": "A command line tool for working with JBrowse 2",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -45,7 +45,7 @@
45
45
  "docs:version:add": "git add README.md"
46
46
  },
47
47
  "dependencies": {
48
- "@oclif/core": "^3.22.0",
48
+ "@oclif/core": "^4.0.6",
49
49
  "@oclif/plugin-help": "^6.0.15",
50
50
  "boxen": "^4.2.0",
51
51
  "chalk": "^4.1.0",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "11b28d66d782eb06f92ccb993108bb6c3c82819e"
77
+ "gitHead": "935f2602d29abc737bb1f493a922b6218d023ae2"
78
78
  }