Skip to content

Commit

Permalink
Merge pull request #1 from skychatorg/dev/7ph
Browse files Browse the repository at this point in the history
Add environment variable support & Persistent token & Linter
  • Loading branch information
7PH authored Apr 19, 2024
2 parents 096eb37 + bc36144 commit 02331a5
Show file tree
Hide file tree
Showing 12 changed files with 2,043 additions and 3,218 deletions.
27 changes: 27 additions & 0 deletions .eslintrc.yml
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
2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
singleQuote: true
tabWidth: 4
20 changes: 15 additions & 5 deletions README.md
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
```
Loading

0 comments on commit 02331a5

Please sign in to comment.