Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit c7d55b7

Browse files
authored
Merge pull request #370 from jumpstarter-dev/programout
2 parents 2e57a18 + 5d83c11 commit c7d55b7

6 files changed

Lines changed: 32 additions & 98 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
extensions = [
2828
"sphinxcontrib.mermaid",
29+
"sphinxcontrib.programoutput",
2930
"myst_parser",
3031
"sphinx.ext.autodoc",
3132
"sphinx.ext.doctest",

docs/source/getting-started/setup-exporter-client.md

Lines changed: 9 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,11 @@ To create an exporter and save the config locally, run the following command:
3030
```bash
3131
# Creates an exporter called "testing" and saves the config
3232
$ jmp admin create exporter testing --save
33+
```
3334

34-
# Usage for jmp admin create exporter
35-
$ jmp admin create exporter
36-
--help
37-
Usage: jmp admin create exporter [OPTIONS] [NAME]
38-
39-
Create an exporter object in the Kubernetes cluster
35+
## Usage for jmp admin create exporter
4036

41-
Options:
42-
-s, --save Save the config file for the created exporter.
43-
-o, --out FILE Specify an output file for the exporter config.
44-
-n, --namespace TEXT Kubernetes namespace to use
45-
--kubeconfig FILENAME path to the kubeconfig file
46-
--context TEXT Kubernetes context to use
47-
--help Show this message and exit.
37+
```{command-output} jmp admin create exporter --help
4838
```
4939

5040
### Edit the Exporter Config
@@ -99,24 +89,11 @@ To connect to the new exporter, a client must be created. We can also use the
9989
```bash
10090
# This will create a client called "hello", allow unsafe drivers, and save the config
10191
$ jmp admin create client hello --save --unsafe
92+
```
10293

103-
# Usage for jmp admin create client
104-
jmp admin create client --help
105-
Usage: jmp admin create client [OPTIONS] [NAME]
106-
107-
Create a client object in the Kubernetes cluster
94+
## Usage for jmp admin create client
10895

109-
Options:
110-
-s, --save Save the config file for the created client.
111-
-a, --allow TEXT A comma-separated list of driver client packages to
112-
load.
113-
--unsafe Should all driver client packages be allowed to load
114-
(UNSAFE!).
115-
-o, --out FILE Specify an output file for the client config.
116-
-n, --namespace TEXT Kubernetes namespace to use
117-
--kubeconfig FILENAME path to the kubeconfig file
118-
--context TEXT Kubernetes context to use
119-
--help Show this message and exit.
96+
```{command-output} jmp admin create client --help
12097
```
12198

12299
## Connect to the Exporter
@@ -130,33 +107,11 @@ Python API.
130107
```bash
131108
# Spawn a shell using the "hello" client
132109
$ jmp shell --client hello --selector example.com/board=foo
110+
```
133111

134-
# Usage for jmp shell
135-
$ jmp shell --help
136-
Usage: jmp shell [OPTIONS]
137-
138-
Spawns a shell connecting to a local or remote exporter
112+
## Usage for jmp shell
139113

140-
Options:
141-
--exporter-config PATH Path of exporter config
142-
--exporter TEXT Alias of exporter config
143-
--client-config PATH Path to client config
144-
--client TEXT Alias of client config
145-
--lease TEXT
146-
-l, --selector TEXT Selector (label query) to filter on, supports '=',
147-
'==', and '!=' (e.g. -l key1=value1,key2=value2).
148-
Matching objects must satisfy all of the specified
149-
label constraints.
150-
--duration DURATION Accepted duration formats:
151-
152-
PnYnMnDTnHnMnS - ISO 8601 duration format
153-
HH:MM:SS - time in hours, minutes, seconds
154-
D days, HH:MM:SS - time prefixed by X days
155-
D d, HH:MM:SS - time prefixed by X d
156-
157-
See https://docs.rs/speedate/latest/speedate/ for
158-
details [default: (00:30:00)]
159-
--help Show this message and exit.
114+
```{command-output} jmp shell --help
160115
```
161116

162117
Once a lease is acquired, we can interact with the drivers hosted by the exporter

docs/source/installation/service/kind-helm.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,11 @@ If you do not have Helm installed, please [install the latest release](https://h
7575
```
7676
# Install Jumpstarter with default options
7777
$ jmp admin install
78+
```
79+
80+
## Options provided by the Jumpstarter CLI
7881

79-
# Options provided by the Jumpstarter CLI
80-
$ jmp admin install --help
81-
Usage: jmp admin install [OPTIONS]
82-
83-
Install the Jumpstarter service in a Kubernetes cluster
84-
85-
Options:
86-
--helm TEXT Path or name of a helm executable
87-
--name TEXT The name of the chart installation
88-
-c, --chart TEXT The URL of a Jumpstarter helm chart to install
89-
-n, --namespace TEXT Namespace to install Jumpstarter components in
90-
-i, --ip TEXT IP address of your host machine
91-
-b, --basedomain TEXT Base domain of the Jumpstarter service
92-
-g, --grpc-endpoint TEXT The gRPC endpoint to use for the Jumpstarter API
93-
-r, --router-endpoint TEXT The gRPC endpoint to use for the router
94-
--nodeport Use Nodeport routing (recommended)
95-
--ingress Use a Kubernetes ingress
96-
--route Use an OpenShift route
97-
-v, --version TEXT The version of the service to install
98-
--kubeconfig FILENAME path to the kubeconfig file
99-
--context TEXT Kubernetes context to use
100-
--help Show this message and exit.
82+
```{command-output} jmp admin install --help
10183
```
10284

10385
### Install Jumpstarter with Helm

docs/source/installation/service/minikube-helm.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,11 @@ If you do not have Helm installed, please [install the latest release](https://h
3737
```
3838
# Install Jumpstarter with default options
3939
$ jmp admin install --ip $(minikube ip)
40+
```
41+
42+
## Options provided by the Jumpstarter CLI
4043

41-
# Options provided by the Jumpstarter CLI
42-
$ jmp admin install --help
43-
Usage: jmp admin install [OPTIONS]
44-
45-
Install the Jumpstarter service in a Kubernetes cluster
46-
47-
Options:
48-
--helm TEXT Path or name of a helm executable
49-
--name TEXT The name of the chart installation
50-
-c, --chart TEXT The URL of a Jumpstarter helm chart to install
51-
-n, --namespace TEXT Namespace to install Jumpstarter components in
52-
-i, --ip TEXT IP address of your host machine
53-
-b, --basedomain TEXT Base domain of the Jumpstarter service
54-
-g, --grpc-endpoint TEXT The gRPC endpoint to use for the Jumpstarter API
55-
-r, --router-endpoint TEXT The gRPC endpoint to use for the router
56-
--nodeport Use Nodeport routing (recommended)
57-
--ingress Use a Kubernetes ingress
58-
--route Use an OpenShift route
59-
-v, --version TEXT The version of the service to install
60-
--kubeconfig FILENAME path to the kubeconfig file
61-
--context TEXT Kubernetes context to use
62-
--help Show this message and exit.
44+
```{command-output} jmp admin install --help
6345
```
6446

6547
### Install Jumpstarter with Helm

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ docs = [
4343
"sphinx-click>=6.0.0",
4444
"sphinx-substitution-extensions>=2024.10.17",
4545
"requests>=2.32.3",
46+
"sphinxcontrib-programoutput>=0.18",
4647
]
4748
dev = [
4849
"ruff==0.9.2",

uv.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)