Files
Sebastiaan van Stijn 7091e8bea4 cli/flags: add "hostVar" to handle --host / -H as a single string
hostVar is used for the '--host' / '-H' flag to set [ClientOptions.Hosts].
The [ClientOptions.Hosts] field is a slice because it was originally shared
with the daemon config. However, the CLI only allows for a single host to
be specified.

hostVar presents itself as a "string", but stores the value in a string
slice. It produces an error when trying to set multiple values, matching
the check in [getServerHost].

[getServerHost]: 7eab668982/cli/command/cli.go (L542-L551)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f14eeeb361)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-18 17:12:54 +02:00
..
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-02-21 10:40:13 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-10-10 17:00:43 +02:00
2024-10-10 16:35:07 +02:00
2024-08-16 15:09:51 +02:00
2025-05-27 10:58:11 +02:00
2024-10-10 16:35:03 +02:00
2023-01-06 22:36:47 +01:00
2024-08-16 15:09:51 +02:00
2024-10-10 16:35:07 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-12-10 15:51:21 +00:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-02-21 10:40:13 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-10 11:36:40 +02:00
2024-07-04 10:30:56 +02:00
2025-05-27 10:58:11 +02:00
2024-10-10 16:35:03 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-01-18 14:58:43 +01:00
2023-08-28 01:58:58 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00
2023-01-06 22:36:47 +01:00
2024-07-04 10:30:56 +02:00
2024-07-04 10:30:56 +02:00
2023-01-06 22:36:47 +01:00