Skip to content

Commit

Permalink
add API and server command
Browse files Browse the repository at this point in the history
  • Loading branch information
memo33 committed Nov 19, 2023
1 parent 59d7538 commit a5e4cee
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- Guide
* [Getting started](/)
* [CLI](cli.md)
* [API](api.md)
* [About](about.md)
- Packages
* [Highlights](packages.md)
Expand Down
8 changes: 8 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
?> This documentation page is for developers. Skip to the next page: [About](about.md).

[sc4pac-tools-api](https://raw.githubusercontent.com/memo33/sc4pac-tools/main/api.md ':include')

<!-- [sc4pac-tools-api](sc4pac-tools-api.md ':include') -->

---
Next up: [About](about.md)
20 changes: 19 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,22 @@ sc4pac channel build --output "channel/json/" "channel/yaml/"


---
Next up: [About](about.md)
## server

**Usage:** `sc4pac server [options]`

Start a local server to use the HTTP [API](api).

**Example:**
```
sc4pac server --indent 2 --scope-root scopes/scope-1/
```

**Options:**
- `--port number` (default: 51515)
- `--indent number` indentation of JSON responses (default: -1, no indentation)
- `--scope-root path` root directory containing `sc4pac-plugins.json` (default: current working directory), newly created if necessary; can be used for managing multiple different plugins folders


---
Next up: [API](api.md)

0 comments on commit a5e4cee

Please sign in to comment.