Skip to content

Commit

Permalink
Add exclude in docs (#294)�
Browse files Browse the repository at this point in the history
  • Loading branch information
Skazza94 committed May 15, 2024
1 parent 3fe2ef3 commit 732e042
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
5 changes: 4 additions & 1 deletion docs/kathara-lclean.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kathara-lclean(1) -- Stop a Kathara network scenario

## SYNOPSIS

`kathara lclean` [`-h`] [`-d` <DIRECTORY>] [<DEVICE_NAME> [<DEVICE_NAME> ...]]
`kathara lclean` [`-h`] [`-d` <DIRECTORY>] [`--exclude` <DEVICE_NAME> [<DEVICE_NAME> ...]] [<DEVICE_NAME> [<DEVICE_NAME> ...]]

## DESCRIPTION

Expand All @@ -22,6 +22,9 @@ By default, stops all the devices of the network scenario. If a list of <DEVICE_
Cleans the Kathara network scenario that is located inside <DIRECTORY>.
If no `-d` option is provided, assume the network scenario is located in the current directory.

* `--exclude` [<DEVICE_NAME> [<DEVICE_NAME> ...]]
A list of device names. You can exclude certain devices of the network scenario from being shut down.

* `DEVICE_NAME`:
A list of device names. Instead of shutting down the whole network scenario, only specified devices are stopped.

Expand Down
6 changes: 5 additions & 1 deletion docs/kathara-lrestart.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ kathara-lrestart(1) -- Restart a Kathara network scenario
`kathara lrestart` [`-h`] [`-F`] [`-l`]
[`--noterminals` | `--terminals` | `--privileged`] [`-d` <DIRECTORY>]
[`-o` [<OPTION> [<OPTION> ...]]] [`--xterm` <XTERM>]
[`--no-hosthome` \| `--hosthome`] [`--no-shared` \| `--shared`] [<DEVICE_NAME> [<DEVICE_NAME> ...]]
[`--no-hosthome` \| `--hosthome`] [`--no-shared` \| `--shared`] [`--exclude` <DEVICE_NAME> [<DEVICE_NAME> ...]]
[<DEVICE_NAME> [<DEVICE_NAME> ...]]


## DESCRIPTION
Expand Down Expand Up @@ -75,6 +76,9 @@ Mainly it has the same options of `lstart` with the lack of some options (e.g. `

Mount the `shared` directory inside the network scenario folder inside all devices on the special directory `/shared`. This is the default specified in `kathara.conf`(5) file.

* `--exclude` [<DEVICE_NAME> [<DEVICE_NAME> ...]]
A list of device names. You can exclude certain devices of the network scenario from being restarted.

* `DEVICE_NAME`:
A list of device names. Instead of restarting the whole network scenario, only specified devices are restarted.

Expand Down
8 changes: 6 additions & 2 deletions docs/kathara-lstart.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ kathara-lstart(1) -- Start a Kathara network scenario

`kathara lstart` [`-h`] [`--noterminals` \| `--terminals` \| `--privileged`]
[`-d` <DIRECTORY>] [`-F`] [`-l`] [`-o` [<OPTION> [<OPTION> ...]]] [`--xterm` <XTERM>]
[`--print`] [`--no-hosthome` \| `--hosthome`] [`--no-shared` \| `--shared`] [<DEVICE_NAME> [<DEVICE_NAME> ...]]
[`--print`] [`--no-hosthome` \| `--hosthome`] [`--no-shared` \| `--shared`] [`--exclude` <DEVICE_NAME> [<DEVICE_NAME> ...]]
[<DEVICE_NAME> [<DEVICE_NAME> ...]]


## DESCRIPTION
Expand Down Expand Up @@ -86,11 +87,14 @@ The configuration of a Kathara network scenario consists of some files described

Mount the `shared` directory inside the network scenario folder inside all devices on the special directory `/shared`. This is the default specified in `kathara.conf`(5) file.

* `--exclude` [<DEVICE_NAME> [<DEVICE_NAME> ...]]
A list of device names. You can exclude certain devices of the network scenario from being started.

* `DEVICE_NAME`:
A list of device names. Instead of starting the whole network scenario, only specified devices are started.

m4_include(footer.txt)

## SEE ALSO

`kathara`(1), `kathara-lclean`(1), `kathara-lrestart`(1), `kathara-ltest`(1), `kathara-linfo`(1), `kathara-lab.conf`(5), `kathara-lab.dep`(5), `kathara-lab.ext`(5)
`kathara`(1), `kathara-lclean`(1), `kathara-lrestart`(1), `kathara-ltest`(1), `kathara-linfo`(1), `kathara-lab.conf`(5), `kathara-lab.dep`(5), `kathara-lab.ext`(5)
2 changes: 1 addition & 1 deletion src/Kathara/cli/command/LcleanCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self) -> None:
'--exclude',
dest='excluded_machines',
metavar='DEVICE_NAME',
nargs='*',
nargs='+',
default=[],
help='Exclude specified devices from clean.'
)
Expand Down
2 changes: 1 addition & 1 deletion src/Kathara/cli/command/LrestartCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(self) -> None:
'--exclude',
dest='excluded_machines',
metavar='DEVICE_NAME',
nargs='*',
nargs='+',
default=[],
help='Exclude specified devices.'
)
Expand Down
2 changes: 1 addition & 1 deletion src/Kathara/cli/command/LstartCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self) -> None:
'--exclude',
dest='excluded_machines',
metavar='DEVICE_NAME',
nargs='*',
nargs='+',
default=[],
help='Exclude specified devices from startup.'
)
Expand Down

0 comments on commit 732e042

Please sign in to comment.