瀏覽代碼

Regenerate CLI docs for the new port commands

Adds `rpk ups port`, `rpk other port` and `rpk laptops nic` (each with
add/set/del) to cli-commands.md and cli-commands-index.md.

Generated with generate-docs.sh. Two deviations were needed to run it
outside CI, neither of which affects the output:

- the publish step emits RackPeek.exe on Windows, so the `-x` probe on
  the extensionless path never matches
- the script writes raw_docs/Commands.md and raw_docs/CommandIndex.md,
  but the files actually shipped and listed in docs-index.json are
  raw_docs/cli-commands.md and raw_docs/cli-commands-index.md

The diff is purely additive, which confirms the rest of the output
matches what is already committed.
WhiteStorm 1 月之前
父節點
當前提交
b029745e45
共有 2 個文件被更改,包括 226 次插入 和 0 次删除
  1. 12 0
      Shared.Rcl/wwwroot/raw_docs/cli-commands-index.md
  2. 214 0
      Shared.Rcl/wwwroot/raw_docs/cli-commands.md

+ 12 - 0
Shared.Rcl/wwwroot/raw_docs/cli-commands-index.md

@@ -129,6 +129,10 @@
     - [set](docs/Commands.md#rpk-ups-set) - Update properties of a UPS unit
     - [del](docs/Commands.md#rpk-ups-del) - Delete a UPS unit
     - [rename](docs/Commands.md#rpk-ups-rename) - Rename a UPS unit to a new name
+    - [port](docs/Commands.md#rpk-ups-port) - Manage ports on a UPS unit
+      - [add](docs/Commands.md#rpk-ups-port-add) - Add a port to a UPS unit
+      - [set](docs/Commands.md#rpk-ups-port-set) - Update a UPS unit port
+      - [del](docs/Commands.md#rpk-ups-port-del) - Remove a port from a UPS unit
     - [label](docs/Commands.md#rpk-ups-label) - Manage labels on a UPS unit
       - [add](docs/Commands.md#rpk-ups-label-add) - Add a label to a UPS unit
       - [remove](docs/Commands.md#rpk-ups-label-remove) - Remove a label from a UPS unit
@@ -144,6 +148,10 @@
     - [set](docs/Commands.md#rpk-other-set) - Update properties of other hardware
     - [del](docs/Commands.md#rpk-other-del) - Delete other hardware
     - [rename](docs/Commands.md#rpk-other-rename) - Rename other hardware to a new name
+    - [port](docs/Commands.md#rpk-other-port) - Manage ports on other hardware
+      - [add](docs/Commands.md#rpk-other-port-add) - Add a port to other hardware
+      - [set](docs/Commands.md#rpk-other-port-set) - Update an other hardware port
+      - [del](docs/Commands.md#rpk-other-port-del) - Remove a port from other hardware
     - [label](docs/Commands.md#rpk-other-label) - Manage labels on other hardware
       - [add](docs/Commands.md#rpk-other-label-add) - Add a label to other hardware
       - [remove](docs/Commands.md#rpk-other-label-remove) - Remove a label from other hardware
@@ -204,6 +212,10 @@
       - [add](docs/Commands.md#rpk-laptops-gpu-add) - Add a GPU to a Laptop
       - [set](docs/Commands.md#rpk-laptops-gpu-set) - Update a Laptop GPU
       - [del](docs/Commands.md#rpk-laptops-gpu-del) - Remove a GPU from a Laptop
+    - [nic](docs/Commands.md#rpk-laptops-nic) - Manage network interface cards (NICs) for Laptops
+      - [add](docs/Commands.md#rpk-laptops-nic-add) - Add a NIC to a Laptop
+      - [set](docs/Commands.md#rpk-laptops-nic-set) - Update a Laptop NIC
+      - [del](docs/Commands.md#rpk-laptops-nic-del) - Remove a NIC from a Laptop
     - [label](docs/Commands.md#rpk-laptops-label) - Manage labels on a laptop
       - [add](docs/Commands.md#rpk-laptops-label-add) - Add a label to a laptop
       - [remove](docs/Commands.md#rpk-laptops-label-remove) - Remove a label from a laptop

+ 214 - 0
Shared.Rcl/wwwroot/raw_docs/cli-commands.md

@@ -2022,6 +2022,7 @@ COMMANDS:
     set <name>                  Update properties of a UPS unit           
     del <name>                  Delete a UPS unit                         
     rename <name> <new-name>    Rename a UPS unit to a new name           
+    port                        Manage ports on a UPS unit                
     label                       Manage labels on a UPS unit               
     tag                         Manage tags on a UPS unit                 
 ```
@@ -2143,6 +2144,76 @@ OPTIONS:
     -h, --help    Prints help information
 ```
 
+## `rpk ups port`
+```
+DESCRIPTION:
+Manage ports on a UPS unit
+
+USAGE:
+    rpk ups port [OPTIONS] <COMMAND>
+
+OPTIONS:
+    -h, --help    Prints help information
+
+COMMANDS:
+    add <name>    Add a port to a UPS unit     
+    set <name>    Update a UPS unit port       
+    del <name>    Remove a port from a UPS unit
+```
+
+## `rpk ups port add`
+```
+DESCRIPTION:
+Add a port to a UPS unit
+
+USAGE:
+    rpk ups port add <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help     Prints help information        
+        --type     The port type (e.g., rj45, usb)
+        --speed    The port speed (e.g., 0.1, 1)  
+        --count    Number of ports of this type   
+```
+
+## `rpk ups port set`
+```
+DESCRIPTION:
+Update a UPS unit port
+
+USAGE:
+    rpk ups port set <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help             Prints help information        
+        --index <INDEX>    The index of the port to update
+        --type             The port type (e.g., rj45, usb)
+        --speed            The port speed (e.g., 0.1, 1)  
+        --count            Number of ports of this type   
+```
+
+## `rpk ups port del`
+```
+DESCRIPTION:
+Remove a port from a UPS unit
+
+USAGE:
+    rpk ups port del <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help             Prints help information        
+        --index <INDEX>    The index of the port to remove
+```
+
 ## `rpk ups label`
 ```
 DESCRIPTION:
@@ -2260,6 +2331,7 @@ COMMANDS:
     set <name>                  Update properties of other hardware           
     del <name>                  Delete other hardware                         
     rename <name> <new-name>    Rename other hardware to a new name           
+    port                        Manage ports on other hardware                
     label                       Manage labels on other hardware               
     tag                         Manage tags on other hardware                 
 ```
@@ -2381,6 +2453,76 @@ OPTIONS:
     -h, --help    Prints help information
 ```
 
+## `rpk other port`
+```
+DESCRIPTION:
+Manage ports on other hardware
+
+USAGE:
+    rpk other port [OPTIONS] <COMMAND>
+
+OPTIONS:
+    -h, --help    Prints help information
+
+COMMANDS:
+    add <name>    Add a port to other hardware     
+    set <name>    Update an other hardware port    
+    del <name>    Remove a port from other hardware
+```
+
+## `rpk other port add`
+```
+DESCRIPTION:
+Add a port to other hardware
+
+USAGE:
+    rpk other port add <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help     Prints help information          
+        --type     The port type (e.g., rj45, sfp+) 
+        --speed    The port speed (e.g., 1, 2.5, 10)
+        --count    Number of ports of this type     
+```
+
+## `rpk other port set`
+```
+DESCRIPTION:
+Update an other hardware port
+
+USAGE:
+    rpk other port set <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help             Prints help information          
+        --index <INDEX>    The index of the port to update  
+        --type             The port type (e.g., rj45, sfp+) 
+        --speed            The port speed (e.g., 1, 2.5, 10)
+        --count            Number of ports of this type     
+```
+
+## `rpk other port del`
+```
+DESCRIPTION:
+Remove a port from other hardware
+
+USAGE:
+    rpk other port del <name> [OPTIONS]
+
+ARGUMENTS:
+    <name>     
+
+OPTIONS:
+    -h, --help             Prints help information        
+        --index <INDEX>    The index of the port to remove
+```
+
 ## `rpk other label`
 ```
 DESCRIPTION:
@@ -3038,6 +3180,8 @@ COMMANDS:
     cpu                         Manage CPUs attached to Laptops                 
     drive                       Manage storage drives attached to Laptops       
     gpu                         Manage GPUs attached to Laptops                 
+    nic                         Manage network interface cards (NICs) for       
+                                Laptops                                         
     label                       Manage labels on a laptop                       
     tag                         Manage tags on a laptop                         
 ```
@@ -3379,6 +3523,76 @@ OPTIONS:
     -h, --help    Prints help information
 ```
 
+## `rpk laptops nic`
+```
+DESCRIPTION:
+Manage network interface cards (NICs) for Laptops
+
+USAGE:
+    rpk laptops nic [OPTIONS] <COMMAND>
+
+OPTIONS:
+    -h, --help    Prints help information
+
+COMMANDS:
+    add <Laptop>            Add a NIC to a Laptop     
+    set <Laptop> <index>    Update a Laptop NIC       
+    del <Laptop> <index>    Remove a NIC from a Laptop
+```
+
+## `rpk laptops nic add`
+```
+DESCRIPTION:
+Add a NIC to a Laptop
+
+USAGE:
+    rpk laptops nic add <Laptop> [OPTIONS]
+
+ARGUMENTS:
+    <Laptop>    The name of the Laptop
+
+OPTIONS:
+    -h, --help     Prints help information          
+        --type     The nic port type e.g rj45 / sfp+
+        --speed    The port speed                   
+        --ports    The number of ports              
+```
+
+## `rpk laptops nic set`
+```
+DESCRIPTION:
+Update a Laptop NIC
+
+USAGE:
+    rpk laptops nic set <Laptop> <index> [OPTIONS]
+
+ARGUMENTS:
+    <Laptop>    The Laptop name               
+    <index>     The index of the nic to update
+
+OPTIONS:
+    -h, --help     Prints help information          
+        --type     The nic port type e.g rj45 / sfp+
+        --speed    The port speed                   
+        --ports    The number of ports              
+```
+
+## `rpk laptops nic del`
+```
+DESCRIPTION:
+Remove a NIC from a Laptop
+
+USAGE:
+    rpk laptops nic del <Laptop> <index> [OPTIONS]
+
+ARGUMENTS:
+    <Laptop>    The Laptop name               
+    <index>     The index of the nic to remove
+
+OPTIONS:
+    -h, --help    Prints help information
+```
+
 ## `rpk laptops label`
 ```
 DESCRIPTION: