oorja 2.2.0 → 2.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 CHANGED
@@ -83,20 +83,20 @@ DESCRIPTION
83
83
  Display help for oorja.
84
84
  ```
85
85
 
86
- ## `oorja teletype [SPACE_URL]`
86
+ ## `oorja teletype [STREAM_KEY]`
87
87
 
88
88
  Launch a terminal streaming session in oorja.
89
89
 
90
90
  ```
91
91
  USAGE
92
- $ oorja teletype [SPACE_URL] [-h] [-s <value>] [-m] [-n]
92
+ $ oorja teletype [STREAM_KEY] [-h] [-s <value>] [-m] [-n]
93
93
 
94
94
  FLAGS
95
95
  -h, --help Show CLI help.
96
96
  -m, --multiplex Allows users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust space
97
97
  participants. Off by default
98
98
  -n, --new_space Create new space
99
- -s, --shell=<value> [default: /usr/bin/zsh] shell to use. e.g. bash, fish
99
+ -s, --shell=<value> [default: /usr/bin/bash] shell to use. e.g. bash, fish
100
100
 
101
101
  DESCRIPTION
102
102
  Launch a terminal streaming session in oorja.
@@ -108,8 +108,8 @@ EXAMPLES
108
108
  $ teletype
109
109
  Will prompt to choose streaming destination - existing space or create a new one.
110
110
 
111
- $ teletype 'https://oorja.io/spaces?id=foo#key'
112
- Will stream to the space specified by secret link, you must have joined the space before streaming.
111
+ $ teletype $stream-key
112
+ Will stream to the space specified by secret link.
113
113
 
114
114
  $ teletype -m
115
115
  Will also allow participants to write to your terminal!
@@ -1,13 +1,14 @@
1
1
  import inquirer from 'inquirer';
2
2
  import { Command, Flags, Args } from '@oclif/core';
3
3
  import ora from 'ora';
4
- import { hostname } from 'os';
4
+ import { hostname, platform } from 'os';
5
5
  import chalk from 'chalk';
6
6
  import { Config, STREAM_KEY_SAMPLE } from '../../lib/config.js';
7
7
  import { App, parseStreamKey } from '../../lib/oorja/index.js';
8
8
  import { printExitMessage, promptStreamKey } from '../../lib/utils.js';
9
9
  import { Unauthorized } from '../../lib/connect/errors.js';
10
10
  import { exit } from '../../lib/exit.js';
11
+ const DEFAULT_SHELL = platform() === 'win32' ? 'powershell.exe' : process.env.SHELL || 'bash';
11
12
  export default class TeleTypeCommand extends Command {
12
13
  static order = 1;
13
14
  static aliases = ['tty'];
@@ -32,7 +33,7 @@ Will also allow participants to write to your terminal! Collaboration mode must
32
33
  shell: Flags.string({
33
34
  char: 's',
34
35
  description: 'shell to use. e.g. bash, fish',
35
- default: 'bash',
36
+ default: DEFAULT_SHELL,
36
37
  }),
37
38
  multiplex: Flags.boolean({
38
39
  char: 'm',
@@ -47,7 +47,7 @@
47
47
  "char": "s",
48
48
  "description": "shell to use. e.g. bash, fish",
49
49
  "name": "shell",
50
- "default": "bash",
50
+ "default": "/usr/bin/zsh",
51
51
  "hasDynamicHelp": false,
52
52
  "multiple": false,
53
53
  "type": "option"
@@ -85,5 +85,5 @@
85
85
  ]
86
86
  }
87
87
  },
88
- "version": "2.2.0"
88
+ "version": "2.2.1"
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oorja",
3
3
  "description": "stream terminals to the web and more.",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "keywords": [
6
6
  "teletype",
7
7
  "terminal",