Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 9, 2024
1 parent 36b870b commit b4e49eb
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 42 deletions.
24 changes: 12 additions & 12 deletions docs/cli/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"full_cmd": [],
"usage": "<SUBCOMMAND>",
"subcommands": {
"daemon": {
"supervisor": {
"full_cmd": [
"daemon"
"supervisor"
],
"usage": "daemon <SUBCOMMAND>",
"usage": "supervisor <SUBCOMMAND>",
"subcommands": {
"run": {
"full_cmd": [
"daemon",
"supervisor",
"run"
],
"usage": "daemon run [-f --force]",
"usage": "supervisor run [-f --force]",
"subcommands": {},
"args": [],
"flags": [
Expand Down Expand Up @@ -45,10 +45,10 @@
},
"start": {
"full_cmd": [
"daemon",
"supervisor",
"start"
],
"usage": "daemon start [-f --force]",
"usage": "supervisor start [-f --force]",
"subcommands": {},
"args": [],
"flags": [
Expand Down Expand Up @@ -77,10 +77,10 @@
},
"status": {
"full_cmd": [
"daemon",
"supervisor",
"status"
],
"usage": "daemon status",
"usage": "supervisor status",
"subcommands": {},
"args": [],
"flags": [],
Expand All @@ -94,10 +94,10 @@
},
"stop": {
"full_cmd": [
"daemon",
"supervisor",
"stop"
],
"usage": "daemon stop",
"usage": "supervisor stop",
"subcommands": {},
"args": [],
"flags": [],
Expand All @@ -115,7 +115,7 @@
"mounts": [],
"hide": false,
"subcommand_required": true,
"name": "daemon",
"name": "supervisor",
"aliases": [],
"hidden_aliases": [],
"examples": []
Expand Down
10 changes: 0 additions & 10 deletions docs/cli/daemon.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/cli/daemon/status.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/cli/daemon/stop.md

This file was deleted.

10 changes: 5 additions & 5 deletions docs/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

## Subcommands

- [`pitchfork daemon <SUBCOMMAND>`](/cli/daemon.md)
- [`pitchfork daemon run [-f --force]`](/cli/daemon/run.md)
- [`pitchfork daemon start [-f --force]`](/cli/daemon/start.md)
- [`pitchfork daemon status`](/cli/daemon/status.md)
- [`pitchfork daemon stop`](/cli/daemon/stop.md)
- [`pitchfork supervisor <SUBCOMMAND>`](/cli/supervisor.md)
- [`pitchfork supervisor run [-f --force]`](/cli/supervisor/run.md)
- [`pitchfork supervisor start [-f --force]`](/cli/supervisor/start.md)
- [`pitchfork supervisor status`](/cli/supervisor/status.md)
- [`pitchfork supervisor stop`](/cli/supervisor/stop.md)
- [`pitchfork logs [-n <N>] [-t --tail] [NAME]...`](/cli/logs.md)
- [`pitchfork run [-f --force] <NAME> [CMD]...`](/cli/run.md)
- [`pitchfork start [NAME]...`](/cli/start.md)
Expand Down
10 changes: 10 additions & 0 deletions docs/cli/supervisor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# `pitchfork supervisor`

- **Usage**: `pitchfork supervisor <SUBCOMMAND>`

## Subcommands

- [`pitchfork supervisor run [-f --force]`](/cli/supervisor/run.md)
- [`pitchfork supervisor start [-f --force]`](/cli/supervisor/start.md)
- [`pitchfork supervisor status`](/cli/supervisor/status.md)
- [`pitchfork supervisor stop`](/cli/supervisor/stop.md)
4 changes: 2 additions & 2 deletions docs/cli/daemon/run.md → docs/cli/supervisor/run.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `pitchfork daemon run`
# `pitchfork supervisor run`

- **Usage**: `pitchfork daemon run [-f --force]`
- **Usage**: `pitchfork supervisor run [-f --force]`

Runs the internal pitchfork daemon in the foreground

Expand Down
4 changes: 2 additions & 2 deletions docs/cli/daemon/start.md → docs/cli/supervisor/start.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `pitchfork daemon start`
# `pitchfork supervisor start`

- **Usage**: `pitchfork daemon start [-f --force]`
- **Usage**: `pitchfork supervisor start [-f --force]`

Starts the internal pitchfork daemon in the background

Expand Down
5 changes: 5 additions & 0 deletions docs/cli/supervisor/status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `pitchfork supervisor status`

- **Usage**: `pitchfork supervisor status`

Gets the status of the pitchfork daemon
5 changes: 5 additions & 0 deletions docs/cli/supervisor/stop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `pitchfork supervisor stop`

- **Usage**: `pitchfork supervisor stop`

Stops the internal pitchfork daemon running in the background
1 change: 1 addition & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ run = "cargo build"
depends = ["build"]
run = [
"pitchfork usage > pitchfork.usage.kdl",
"rm -rf docs/cli && mkdir -p docs/cli",
"usage g markdown -mf pitchfork.usage.kdl --out-dir docs/cli --url-prefix /cli",
"usage g json -f pitchfork.usage.kdl > docs/cli/commands.json",
"git add pitchfork.usage.kdl docs",
Expand Down
2 changes: 1 addition & 1 deletion pitchfork.usage.kdl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name "pitchfork-cli"
bin "pitchfork"
usage "Usage: pitchfork-cli <COMMAND>"
cmd "daemon" subcommand_required=true {
cmd "supervisor" subcommand_required=true {
cmd "run" help="Runs the internal pitchfork daemon in the foreground" {
flag "-f --force" help="kill existing daemon"
}
Expand Down

0 comments on commit b4e49eb

Please sign in to comment.