- Imported packages from separate repos: - github.com/Snider/config -> pkg/config - github.com/Snider/display -> pkg/display - github.com/Snider/help -> pkg/help - github.com/Snider/i18n -> pkg/i18n - github.com/Snider/updater -> pkg/updater - Moved core code from root to pkg/core - Flattened nested package structures - Updated all import paths to github.com/Snider/Core/pkg/* - Added Display interface to Core - Updated go.work for workspace modules Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
834 B
Markdown
45 lines
834 B
Markdown
# CLI Reference
|
|
|
|
The `i18n` command-line tool helps you manage the application and its services.
|
|
|
|
## Base Command
|
|
|
|
```bash
|
|
i18n [command]
|
|
```
|
|
|
|
**Description:**
|
|
`i18n` is a CLI for managing internationalization and localization. It provides functions for the web server and locale management.
|
|
|
|
**Usage:**
|
|
Run `i18n` without any arguments to see the help message or a greeting (depending on configuration).
|
|
|
|
## Commands
|
|
|
|
### `serve`
|
|
|
|
Start the web server.
|
|
|
|
```bash
|
|
i18n serve
|
|
```
|
|
|
|
**Description:**
|
|
The `serve` command starts the Go web server which serves the Angular frontend and the API endpoints.
|
|
|
|
**Options:**
|
|
Currently, the server listens on port **8080** by default.
|
|
|
|
**Example:**
|
|
```bash
|
|
go run ./cmd/i18n serve
|
|
```
|
|
|
|
## Help
|
|
|
|
To get help for any command, use the `--help` or `-h` flag.
|
|
|
|
```bash
|
|
i18n --help
|
|
i18n serve --help
|
|
```
|