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