Zbigniew Jędrzejewski-Szmek
3a5b37e162
Split up the giant switch statement in homectl's parse_argv ( #40059 )
...
This is in preparation for later changes. The 1500+ line switch statement was very
hard to work with and had quite a bit of duplicated code. This is a rework that
splits outs parts into functions. I split this up into a bunch of commits so that it
can be reasonably reviewed. When viewed as one giant commit, diff just shows
a giant block of removed code and a giant block of added code.
In some cases I wasn't sure why one or the other of the identity arrays is used…
I preserved existing behaviour in all cases.
2026-01-16 14:31:08 +01:00
..
2025-12-07 09:09:03 +09:00
2025-11-04 15:53:23 +00:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-12-10 12:09:10 +01:00
2025-11-07 21:35:45 +00:00
2025-08-01 05:42:51 +09:00
2026-01-06 04:46:34 +09:00
2025-12-10 12:09:10 +01:00
2025-07-28 16:29:31 +09:00
2025-11-10 20:49:00 +09:00
2025-12-10 12:09:10 +01:00
2025-10-14 17:56:39 +01:00
2025-07-30 15:37:18 +01:00
2025-12-09 14:41:59 +09:00
2025-12-24 07:37:58 +01:00
2025-09-23 15:48:53 +01:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-12-18 00:19:09 +01:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2025-11-17 16:50:50 +01:00
2025-09-23 15:48:53 +01:00
2025-09-04 10:58:33 +09:00
2025-11-17 16:50:50 +01:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-12-09 14:41:59 +09:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-11-18 15:18:00 +00:00
2025-10-28 13:26:15 +00:00
2026-01-06 03:26:15 -08:00
2025-12-07 09:09:03 +09:00
2025-09-23 15:48:53 +01:00
2025-11-04 15:54:06 +00:00
2025-12-21 20:31:24 +01:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-12-10 12:09:10 +01:00
2025-12-07 09:09:03 +09:00
2025-11-24 16:34:00 +01:00
2025-12-07 09:10:29 +09:00
2026-01-06 04:54:48 +09:00
2025-09-23 15:48:53 +01:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2026-01-14 16:32:38 +01:00
2025-12-07 09:09:03 +09:00
2026-01-14 16:32:38 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2026-01-14 16:32:38 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-11-18 16:23:29 +01:00
2026-01-14 16:32:38 +01:00
2025-09-26 09:28:12 +09:00
2025-09-26 07:20:04 +09:00
2025-09-23 15:48:53 +01:00
2025-09-05 08:29:52 +02:00
2025-09-23 15:48:53 +01:00
2025-11-17 16:50:50 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-23 15:48:53 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-11-17 16:50:50 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2026-01-16 12:45:48 +00:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2026-01-14 16:32:38 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-09-02 09:38:51 +01:00
2026-01-04 16:04:54 +01:00
2025-09-23 15:48:53 +01:00
2026-01-06 17:59:10 +01:00
2025-12-18 09:12:54 +01:00
2025-12-10 12:09:10 +01:00
2026-01-14 16:32:38 +01:00
2026-01-05 06:53:50 +09:00
2025-09-26 07:20:04 +09:00
2025-09-24 09:52:36 +02:00
2025-11-20 09:47:11 +01:00
2025-11-07 20:04:59 +00:00
2025-09-29 23:01:24 +02:00
2025-09-24 09:52:36 +02:00
2025-12-16 21:28:19 +01:00
2025-12-10 12:09:10 +01:00
2026-01-14 16:32:38 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-12-10 12:09:10 +01:00
2025-11-17 16:50:50 +01:00
2026-01-14 16:32:38 +01:00
2025-12-18 09:12:54 +01:00
2025-09-26 07:20:04 +09:00
2025-12-07 09:09:03 +09:00
2025-09-26 07:20:04 +09:00
2025-09-23 15:48:53 +01:00
2025-11-17 16:50:50 +01:00
2025-12-10 12:09:10 +01:00
2025-11-26 12:24:57 +00:00
2025-12-16 22:28:10 +09:00
2025-12-16 22:28:10 +09:00
2025-12-16 21:10:12 +00:00
2025-12-07 09:10:29 +09:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2025-12-07 09:10:29 +09:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2025-12-18 13:57:32 +01:00
2025-09-26 09:42:13 +02:00
2025-11-17 16:50:50 +01:00
2025-11-13 14:11:11 +01:00
2025-09-23 15:48:53 +01:00
2025-11-05 02:53:05 +09:00
2025-10-23 11:56:26 +01:00
2025-10-04 23:00:31 +02:00
2026-01-03 19:57:44 +01:00
2025-12-10 12:09:10 +01:00
2025-09-23 15:48:53 +01:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-09-26 07:20:04 +09:00
2025-12-10 12:09:10 +01:00
2025-09-18 20:22:42 +02:00
2025-09-23 15:48:53 +01:00
2025-12-15 18:20:53 +09:00
2025-12-10 12:09:10 +01:00
2025-12-15 18:20:53 +09:00
2025-11-07 14:12:56 +01:00
2025-12-10 12:09:10 +01:00
2025-09-26 07:20:04 +09:00
2025-09-04 02:05:09 +09:00
2025-10-06 04:55:25 +09:00
2025-12-10 12:09:10 +01:00
2025-11-25 11:49:31 +01:00
2025-12-07 09:09:03 +09:00
2025-12-10 12:09:10 +01:00