Skip to content

Commit

Permalink
feat(cli): add new serve command for Botonic 1.0 under flag --preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmarcos committed Jul 15, 2021
1 parent 7407a6b commit 7c80110
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 185 deletions.
19 changes: 11 additions & 8 deletions packages/botonic-cli/README.md
Expand Up @@ -21,7 +21,7 @@ $ npm install -g @botonic/cli
$ botonic COMMAND
running command...
$ botonic (-v|--version|version)
@botonic/cli/0.18.6 darwin-x64 node-v12.22.1
@botonic/cli/1.0.0-alpha.3 darwin-x64 node-v14.6.0
$ botonic --help [COMMAND]
USAGE
$ botonic COMMAND
Expand Down Expand Up @@ -63,7 +63,7 @@ EXAMPLE
🚀 Bot deployed!
```

_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/deploy.js)_
_See code: [lib/commands/deploy.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/deploy.js)_

## `botonic help [COMMAND]`

Expand Down Expand Up @@ -94,7 +94,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/login.js)_
_See code: [lib/commands/login.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/login.js)_

## `botonic logout`

Expand All @@ -108,7 +108,7 @@ OPTIONS
-p, --path=path Path to botonic project. Defaults to current dir.
```

_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/logout.js)_
_See code: [lib/commands/logout.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/logout.js)_

## `botonic new NAME [PROJECTNAME]`

Expand All @@ -128,7 +128,7 @@ EXAMPLE
✨ test_bot was successfully created!
```

_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/new.js)_
_See code: [lib/commands/new.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/new.js)_

## `botonic serve`

Expand All @@ -138,12 +138,15 @@ Serve your bot in your localhost
USAGE
$ botonic serve
OPTIONS
-p, --preview Run preview Botonic 1.0 serve.
EXAMPLE
$ botonic serve
> Project is running at http://localhost:8080/
```

_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/serve.js)_
_See code: [lib/commands/serve.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/serve.js)_

## `botonic test`

Expand All @@ -170,7 +173,7 @@ EXAMPLE
Ran all test suites.
```

_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/test.js)_
_See code: [lib/commands/test.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/test.js)_

## `botonic train`

Expand All @@ -188,5 +191,5 @@ EXAMPLE
TRAINING MODEL...
```

_See code: [lib/commands/train.js](https://github.com/hubtype/botonic/blob/v0.18.6/lib/commands/train.js)_
_See code: [lib/commands/train.js](https://github.com/hubtype/botonic/blob/v1.0.0-alpha.3/lib/commands/train.js)_
<!-- commandsstop -->

0 comments on commit 7c80110

Please sign in to comment.