Compare commits
2
Commits
1fa8c5ba66
...
v1.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5a1b7ce53 | ||
|
|
90d68f2510 |
@@ -24,7 +24,7 @@ API for automation.
|
||||
## Quickstart
|
||||
|
||||
```bash
|
||||
npm install -g triggershell # or: npx triggershell <command> for one-off use
|
||||
npm install -g @valknar/triggershell # or: npx @valknar/triggershell <command> for one-off use
|
||||
triggershell init # scaffold triggershell.yml (+ .env for secrets) in the current directory
|
||||
triggershell users add admin # create a login (skip if you set auth.enabled: false)
|
||||
triggershell start # start the app and open the browser
|
||||
@@ -113,7 +113,7 @@ the script — always as a discrete argv element or env var, never interpolated
|
||||
| `triggershell service install [--system]` | Install a systemd unit that runs `triggershell start` (per-user by default, Linux only) |
|
||||
| `triggershell service uninstall [--system]` | Stop, disable, and remove the systemd unit |
|
||||
| `triggershell service status [--system]` | Show the systemd unit's status |
|
||||
| `triggershell service logs [-n LINES] [--no-follow] [--system]` | Tail the systemd unit's logs (wraps `journalctl -o cat`, so each line is raw JSON - pipe through `jq` for pretty-printing) |
|
||||
| `triggershell service logs [-n LINES] [--no-follow] [--system]` | Tail the systemd unit's logs (wraps `journalctl -o cat`, so each line is raw JSON - pipe through `jq` for pretty-printing) |
|
||||
|
||||
### Running scripts from the CLI
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "triggershell",
|
||||
"version": "1.1.0",
|
||||
"name": "@valknar/triggershell",
|
||||
"version": "1.2.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
|
||||
+2
-4
@@ -184,10 +184,8 @@ service
|
||||
service
|
||||
.command("logs")
|
||||
.description("Tail the systemd unit's logs (journalctl).")
|
||||
.option(
|
||||
"-n, --lines <n>",
|
||||
"Number of recent log lines to show.",
|
||||
(v) => Number(v),
|
||||
.option("-n, --lines <n>", "Number of recent log lines to show.", (v) =>
|
||||
Number(v),
|
||||
)
|
||||
.option(
|
||||
"--no-follow",
|
||||
|
||||
Reference in New Issue
Block a user