Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Oct 28, 2024
1 parent 00edde6 commit 2831c12
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 20 deletions.
7 changes: 5 additions & 2 deletions config/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ options:
description: |
Raise an error if the operation does not complete in the given
period of time.
links:
- name: Duration format
url: https://pkg.go.dev/time#ParseDuration
update/name:
name: name
type: string
Expand Down Expand Up @@ -385,12 +388,12 @@ commands:
- name: start
platforms: [Docker, Podman, Systemd]
description: |
Start the Skupper router for the current site.
Start running the Skupper components for the current site.
# site.stop
- name: stop
platforms: [Docker, Podman, Systemd]
description: |
Stop the Skupper router for the current site.
Shut down the Skupper components for the current site.
# site.reload
- name: reload
platforms: [Docker, Podman, Systemd]
Expand Down
2 changes: 1 addition & 1 deletion input/commands/connector/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $ skupper connector create backend 8080 --routing-key be1 --workload deployment/
period of time.

<table class="fields"><tr><th>Default</th><td><p><code>60s</code></p>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td></table>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td><tr><th>See also</th><td><a href="https://pkg.go.dev/time#ParseDuration">Duration format</a></td></table>

- <div class="attribute"><h3 id="option-routing-key">--routing-key</h3><div>&lt;string&gt;</div></div>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/connector/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Listeners: 1

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

An optional resource name. If set, the status command reports
status for the named resource only.
Expand Down
4 changes: 2 additions & 2 deletions input/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ links:
</td></tr>
<tr><th><a href="{{site_prefix}}/commands/site/generate.html">Site generate</a></th><td><p>Generate a Site resource</p>
</td></tr>
<tr><th><a href="{{site_prefix}}/commands/site/start.html">Site start</a></th><td><p>Start the Skupper router for the current site</p>
<tr><th><a href="{{site_prefix}}/commands/site/start.html">Site start</a></th><td><p>Start running the Skupper components for the current site</p>
</td></tr>
<tr><th><a href="{{site_prefix}}/commands/site/stop.html">Site stop</a></th><td><p>Stop the Skupper router for the current site</p>
<tr><th><a href="{{site_prefix}}/commands/site/stop.html">Site stop</a></th><td><p>Shut down the Skupper components for the current site</p>
</td></tr>
<tr><th><a href="{{site_prefix}}/commands/site/reload.html">Site reload</a></th><td><p>Reload the site configuration</p>
</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion input/commands/link/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Cost: 1

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

An optional resource name. If set, the status command reports
status for the named resource only.
Expand Down
2 changes: 1 addition & 1 deletion input/commands/link/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Link "west-6bfn6" is ready.
period of time.

<table class="fields"><tr><th>Default</th><td><p><code>60s</code></p>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td></table>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td><tr><th>See also</th><td><a href="https://pkg.go.dev/time#ParseDuration">Duration format</a></td></table>

- <div class="attribute"><h3 id="option-cost">--cost</h3><div>&lt;integer&gt;</div></div>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/listener/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $ skupper listener create backend 8080 --routing-key be1 --host apiserver
period of time.

<table class="fields"><tr><th>Default</th><td><p><code>60s</code></p>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td></table>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td><tr><th>See also</th><td><a href="https://pkg.go.dev/time#ParseDuration">Duration format</a></td></table>

- <div class="attribute"><h3 id="option-routing-key">--routing-key</h3><div>&lt;string&gt;</div></div>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/listener/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Connectors: 1

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

An optional resource name. If set, the status command reports
status for the named resource only.
Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $ skupper site create west --enable-link-access
period of time.

<table class="fields"><tr><th>Default</th><td><p><code>60s</code></p>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td></table>
</td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Systemd</td><tr><th>See also</th><td><a href="https://pkg.go.dev/time#ParseDuration">Duration format</a></td></table>

- <div class="attribute"><h3 id="option-enable-link-access">--enable-link-access</h3><div>boolean</div></div>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ skupper site delete --all

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

The name of the site resource.

Expand Down
4 changes: 2 additions & 2 deletions input/commands/site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ skupper site [command] [options]
</td></tr>
<tr><th><a href="generate.html">Site generate</a></th><td><p>Generate a Site resource</p>
</td></tr>
<tr><th><a href="start.html">Site start</a></th><td><p>Start the Skupper router for the current site</p>
<tr><th><a href="start.html">Site start</a></th><td><p>Start running the Skupper components for the current site</p>
</td></tr>
<tr><th><a href="stop.html">Site stop</a></th><td><p>Stop the Skupper router for the current site</p>
<tr><th><a href="stop.html">Site stop</a></th><td><p>Shut down the Skupper components for the current site</p>
</td></tr>
<tr><th><a href="reload.html">Site reload</a></th><td><p>Reload the site configuration</p>
</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ links:

<section>

Start the Skupper router for the current site.
Start running the Skupper components for the current site.

<table class="fields"><tr><th>Platforms</th><td>Docker, Podman, Systemd</td></table>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Message: -

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

An optional resource name. If set, the status command reports
status for the named resource only.
Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ links:

<section>

Stop the Skupper router for the current site.
Shut down the Skupper components for the current site.

<table class="fields"><tr><th>Platforms</th><td>Docker, Podman, Systemd</td></table>

Expand Down
2 changes: 1 addition & 1 deletion input/commands/site/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ skupper site update --enable-link-access --service-account alice

## Options

- <div class="attribute"><h3 id="option-name">&lt;name&gt;</h3><div>string, optional</div></div>
- <div class="attribute"><h3 id="option-name">[name]</h3><div>string, optional</div></div>

The name of the site resource.

Expand Down
2 changes: 1 addition & 1 deletion input/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ body.object main::after {
}

table.objects th {
width: 10em;
width: 14em;
text-align: left;
font-weight: normal;
}
Expand Down
5 changes: 4 additions & 1 deletion python/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ def generate_option(option, append):
option_info = option.type

if option.positional:
option_key = f"&lt;{option_key}&gt;"
if option.required:
option_key = f"&lt;{option_key}&gt;"
else:
option_key = f"[{option_key}]"
else:
option_key = f"--{option_key}"

Expand Down

0 comments on commit 2831c12

Please sign in to comment.