2021-12-15 11:12:16 -06:00
|
|
|
*Jump to [source](multicall-hostname.rs)*
|
2021-11-30 12:30:19 -06:00
|
|
|
|
2021-11-10 16:15:30 -06:00
|
|
|
Example of a `hostname-style` multicall program
|
|
|
|
|
2022-02-11 21:48:29 -06:00
|
|
|
See the documentation for `clap::Command::multicall` for rationale.
|
2021-11-10 16:15:30 -06:00
|
|
|
|
|
|
|
This example omits the implementation of displaying address config
|
|
|
|
|
2022-01-05 17:54:33 +01:00
|
|
|
```console
|
2021-11-23 15:59:56 -06:00
|
|
|
$ hostname
|
2021-11-10 16:15:30 -06:00
|
|
|
www
|
2022-01-05 17:54:33 +01:00
|
|
|
|
2021-11-10 16:15:30 -06:00
|
|
|
```
|
2021-12-11 17:18:03 +00:00
|
|
|
*Note: without the links setup, we can't demonstrate the multicall behavior*
|