-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from skychatorg/dev/7ph
Add environment variable support & Persistent token & Linter
- Loading branch information
Showing
12 changed files
with
2,043 additions
and
3,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
env: | ||
browser: true | ||
es2021: true | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended | ||
- prettier | ||
parserOptions: | ||
ecmaVersion: latest | ||
parser: '@typescript-eslint/parser' | ||
sourceType: module | ||
plugins: | ||
- '@typescript-eslint' | ||
rules: | ||
indent: | ||
- error | ||
- 4 | ||
- SwitchCase: 1 | ||
linebreak-style: | ||
- error | ||
- unix | ||
quotes: | ||
- error | ||
- single | ||
semi: | ||
- error | ||
- always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
singleQuote: true | ||
tabWidth: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
# SkyChatCLI | ||
|
||
Install | ||
## Install | ||
|
||
```bash | ||
npm i -g skychat-cli | ||
``` | ||
|
||
Launch | ||
## Launch | ||
|
||
Logging as `user` with password `password` on instance `some-skychat.com` | ||
|
||
```bash | ||
SKYCHAT_USER=user SKYCHAT_PASSWORD=password skychat-cli -h some-skychat.com | ||
``` | ||
|
||
All options can be passed either through environment or CLI args | ||
|
||
```bash | ||
skychat-cli some-skychat.com user password | ||
skychat-cli -h some-skychat.com -u user -p password | ||
# or | ||
SKYCHAT_HOST=skych.at SKYCHAT_USER=user SKYCHAT_PASSWORD=password skychat-cli | ||
``` | ||
|
||
Logging as guest | ||
You can log in as guest by not specifying user/password | ||
|
||
```bash | ||
skychat-cli some-skychat.com | ||
skychat-cli -h some-skychat.com | ||
``` |
Oops, something went wrong.