mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
711972fab6
commit
31e77f21bb
5 files changed
+55
No files matched your search
@@ -48,6 +48,9 @@ pip install open-terminal
|
||||
open-terminal run --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
The [Open Machine alias package](packages/open-machine) provides the same CLI as
|
||||
`open-machine` and depends on `open-terminal`.
|
||||
|
||||
Linux defaults to a separate XFCE desktop. Select GNOME explicitly with `--desktop-environment gnome`. See [desktop setup](docs/configuration.md#desktop) for required packages. Keep your existing display manager if prompted during installation. Docker `latest` includes XFCE and its dependencies. Sharing your actual logged-in desktop requires `--desktop-mode host`.
|
||||
|
||||
If no API key is configured, one is generated and printed at startup. For Docker, find it with `docker logs open-terminal`.
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# Open Machine
|
||||
|
||||
Alias package for [Open Terminal](https://github.com/open-webui/open-terminal).
|
||||
Installing it installs `open-terminal`; the `open-machine` command forwards all
|
||||
arguments to the same CLI, including its existing help and version output.
|
||||
|
||||
```bash
|
||||
uvx open-machine@latest run --host 127.0.0.1 --port 8000
|
||||
|
||||
# Or pip
|
||||
pip install open-machine
|
||||
open-machine run --host 127.0.0.1 --port 8000
|
||||
```
|
||||
|
||||
To install from this checkout, run from the repository root:
|
||||
|
||||
```bash
|
||||
pip install ./packages/open-machine
|
||||
```
|
||||
|
||||
This package has its own version and is built and published separately from
|
||||
`open-terminal`. To build it from the repository root:
|
||||
|
||||
```bash
|
||||
uv build packages/open-machine --out-dir packages/open-machine/dist
|
||||
```
|
||||
Whitespace-only changes.
@@ -0,0 +1,11 @@
|
||||
"""Thin wrapper that forwards everything to open-terminal's CLI."""
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
"""Entry point that delegates to open-terminal's CLI."""
|
||||
from open_terminal.cli import main as open_terminal_main
|
||||
|
||||
sys.argv[0] = "open-terminal"
|
||||
open_terminal_main()
|
||||
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "open-machine"
|
||||
version = "0.1.0"
|
||||
description = "Alias package for open-terminal"
|
||||
readme = "README.md"
|
||||
license = "MIT"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = ["open-terminal"]
|
||||
|
||||
[project.scripts]
|
||||
open-machine = "open_machine.cli:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
Reference in new issue
Block a user