Flint Winters and GitHub
f98028c925
Unwrap scalars in shell output mode. ( #2548 )
...
* feat: Add UnwrapScalar to ShellVariablesPreferences
- Add UnwrapScalar boolean field to ShellVariablesPreferences struct.
- Initialize UnwrapScalar to false in NewDefaultShellVariablesPreferences.
- This preference will control whether shell output should be quoted or raw.
* feat: Propagate unwrapScalar to ShellVariablesPreferences
- In configureEncoder function, set UnwrapScalar in ConfiguredShellVariablesPreferences.
- This ensures the -r flag's state is passed to the shell encoder for raw output control.
* feat: Implement conditional quoting in shellVariablesEncoder
- Modify doEncode method to check pe.prefs.UnwrapScalar.
- If UnwrapScalar is true, output raw node.Value.
- Otherwise, use quoteValue for shell-safe quoting.
- This enables quote-free output for Kubernetes workflows when -r is used.
* test: Add tests for UnwrapScalar in shell encoder
- Introduce assertEncodesToUnwrapped helper function.
- Add TestShellVariablesEncoderUnwrapScalar to verify quote-free output with -r.
- Add TestShellVariablesEncoderDefaultQuoting to confirm default quoting behavior without -r.
- Ensure comprehensive testing of conditional quoting logic for shell output.
* remove redundant test
2026-01-01 15:21:55 +11:00
..
2026-01-01 15:14:53 +11:00
2024-02-24 15:36:16 +11:00
2023-10-18 12:11:53 +11:00
2025-11-15 14:11:55 +11:00
2025-06-07 15:23:38 +10:00
2025-10-12 15:38:40 +11:00
2025-09-09 20:05:58 +10:00
2025-12-20 15:05:03 +11:00
2025-07-01 13:28:10 +08:00
2025-10-12 15:38:40 +11:00
2023-01-15 11:36:52 +11:00
2024-04-13 11:00:39 +10:00
2025-10-12 15:38:40 +11:00
2024-11-10 03:30:03 -06:00
2025-07-11 22:00:20 +10:00
2023-10-18 12:36:52 +11:00
2024-06-29 15:04:07 +10:00
2024-02-15 13:11:53 +11:00
2025-10-12 15:38:40 +11:00
2025-07-11 22:00:20 +10:00
2025-11-15 14:11:55 +11:00
2025-07-10 13:06:42 +10:00
2025-05-03 20:01:16 +10:00
2025-12-08 21:09:21 +11:00
2025-12-20 19:11:48 +11:00
2023-10-18 12:11:53 +11:00
2023-10-18 12:11:53 +11:00
2025-07-01 15:52:40 +08:00
2025-05-04 10:33:09 +10:00
2025-12-16 20:47:15 +11:00
2025-07-01 15:52:40 +08:00
2025-10-12 13:42:24 +11:00
2025-12-20 19:11:48 +11:00
2024-02-24 16:37:13 +11:00
2025-07-01 15:52:40 +08:00
2025-07-01 15:52:40 +08:00
2025-12-20 19:11:48 +11:00
2025-05-17 18:55:53 +10:00
2024-02-24 15:48:59 +11:00
2026-01-01 15:14:53 +11:00
2025-05-03 16:34:21 +10:00
2024-02-24 15:36:16 +11:00
2025-07-01 15:52:40 +08:00
2025-07-01 15:52:40 +08:00
2026-01-01 15:21:55 +11:00
2026-01-01 15:21:55 +11:00
2024-02-24 15:59:12 +11:00
2025-12-26 11:08:24 +11:00
2025-07-01 15:52:40 +08:00
2024-02-24 15:03:30 +11:00
2026-01-01 15:14:53 +11:00
2026-01-01 15:14:53 +11:00
2025-10-12 14:50:41 +11:00
2025-11-09 16:12:17 +11:00
2025-05-03 16:34:21 +10:00
2022-07-13 14:45:28 +10:00
2022-03-28 14:18:55 +11:00
2024-08-05 15:14:43 +10:00
2026-01-01 15:14:53 +11:00
2024-02-24 15:59:12 +11:00
2022-01-21 19:50:53 +11:00
2022-01-14 15:22:55 +11:00
2025-06-07 15:23:38 +10:00
2025-12-16 14:22:50 +11:00
2025-12-08 20:30:47 +11:00
2025-05-17 18:55:53 +10:00
2025-05-17 18:55:53 +10:00
2024-02-24 15:59:12 +11:00
2024-02-24 15:59:12 +11:00
2026-01-01 15:14:53 +11:00
2026-01-01 15:14:53 +11:00
2025-11-16 09:12:13 +11:00
2025-12-20 15:36:49 +11:00
2025-12-20 15:36:49 +11:00
2025-11-25 10:17:43 +11:00
2025-11-25 10:17:43 +11:00
2024-02-24 15:36:16 +11:00
2023-08-11 12:56:49 +10:00
2024-02-09 17:24:59 +11:00
2023-10-18 12:11:53 +11:00
2025-07-01 15:52:40 +08:00
2025-07-01 15:52:40 +08:00
2025-12-08 20:30:47 +11:00
2025-07-01 13:26:26 +08:00
2025-07-01 13:26:26 +08:00
2026-01-01 15:14:53 +11:00
2023-10-03 16:22:23 +11:00
2025-07-01 15:52:40 +08:00
2025-07-01 15:52:40 +08:00
2025-07-01 15:52:40 +08:00
2025-12-26 11:08:24 +11:00
2025-07-01 15:52:40 +08:00
2025-07-01 13:26:26 +08:00
2025-11-09 16:12:17 +11:00
2025-06-12 15:41:27 +10:00
2025-06-12 15:41:27 +10:00
2023-10-18 12:11:53 +11:00
2024-02-16 09:44:22 +11:00
2025-12-20 19:11:48 +11:00
2025-07-22 11:25:02 +10:00
2023-10-18 12:11:53 +11:00
2023-11-18 12:19:27 +11:00
2024-11-16 11:48:53 +11:00
2023-10-18 12:11:53 +11:00
2024-02-16 09:44:22 +11:00
2025-07-16 15:35:12 +10:00
2025-07-16 15:35:12 +10:00
2024-06-16 10:22:42 +10:00
2024-02-16 09:44:22 +11:00
2022-02-27 11:56:46 +11:00
2024-01-11 13:17:34 +11:00
2023-10-18 12:11:53 +11:00
2024-02-24 15:36:16 +11:00
2024-11-16 11:48:53 +11:00
2022-11-01 09:29:05 +11:00
2024-01-11 13:17:34 +11:00
2023-10-18 12:11:53 +11:00
2024-11-16 11:48:53 +11:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2025-06-07 21:04:26 +10:00
2025-05-03 16:34:21 +10:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2023-10-18 12:11:53 +11:00
2024-03-05 10:40:55 +11:00
2025-03-03 15:10:42 +11:00
2024-02-16 09:44:22 +11:00
2025-11-25 10:44:03 +11:00
2025-11-25 10:44:03 +11:00
2023-10-18 12:11:53 +11:00
2024-11-16 11:48:53 +11:00
2023-10-18 12:11:53 +11:00
2024-11-16 11:48:53 +11:00
2024-06-16 10:22:42 +10:00
2023-10-18 12:11:53 +11:00
2022-11-08 13:40:00 +11:00
2022-02-11 09:05:17 +11:00
2024-01-11 13:17:34 +11:00
2024-06-15 22:13:58 +10:00
2024-02-16 09:44:22 +11:00
2025-11-09 16:12:17 +11:00
2025-11-09 16:12:17 +11:00
2025-06-07 21:04:26 +10:00
2024-02-16 09:44:22 +11:00
2024-06-16 10:48:01 +10:00
2024-02-16 09:44:22 +11:00
2023-10-18 12:11:53 +11:00
2024-02-16 09:44:22 +11:00
2025-06-07 21:04:26 +10:00
2025-06-07 21:04:26 +10:00
2023-10-02 14:43:12 +11:00
2024-01-11 13:17:34 +11:00
2022-05-31 16:28:53 +10:00
2024-02-16 09:44:22 +11:00
2023-03-16 13:39:36 +11:00
2024-01-11 13:17:34 +11:00
2025-11-22 09:40:03 +11:00
2025-11-22 09:40:03 +11:00
2025-05-10 07:24:48 +10:00
2025-05-10 07:24:48 +10:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2025-05-03 16:34:21 +10:00
2025-05-03 16:34:21 +10:00
2024-06-16 10:22:42 +10:00
2025-05-03 16:34:21 +10:00
2025-12-26 10:53:42 +11:00
2025-12-20 15:36:49 +11:00
2024-06-16 10:48:01 +10:00
2025-05-03 16:34:21 +10:00
2024-09-06 12:32:36 +10:00
2025-05-03 16:34:21 +10:00
2023-10-18 12:11:53 +11:00
2023-04-11 12:04:04 +10:00
2024-06-16 10:48:01 +10:00
2024-03-30 13:29:35 +11:00
2021-12-21 15:02:07 +11:00
2024-02-16 09:44:22 +11:00
2021-12-21 15:02:07 +11:00
2024-02-16 09:44:22 +11:00
2025-06-07 21:04:26 +10:00
2024-01-11 13:17:34 +11:00
2025-05-09 15:40:29 +10:00
2024-02-16 09:44:22 +11:00
2024-01-11 13:17:34 +11:00
2025-06-07 21:04:26 +10:00
2025-06-07 21:04:26 +10:00
2023-01-13 13:45:19 +11:00
2023-10-18 12:11:53 +11:00
2024-06-15 22:13:58 +10:00
2023-10-18 12:11:53 +11:00
2025-06-07 21:04:26 +10:00
2025-05-03 16:34:21 +10:00
2024-06-16 10:48:01 +10:00
2024-02-16 09:44:22 +11:00
2024-06-29 15:20:07 +10:00
2025-05-03 16:34:21 +10:00
2025-06-07 15:23:38 +10:00
2025-05-03 16:34:21 +10:00
2024-09-29 15:21:11 +10:00
2024-09-29 15:21:11 +10:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2023-10-05 15:15:01 +11:00
2024-01-11 13:17:34 +11:00
2025-07-23 13:31:25 +10:00
2025-07-22 10:18:39 +10:00
2023-10-18 12:11:53 +11:00
2023-10-18 12:11:53 +11:00
2025-06-07 15:23:38 +10:00
2024-06-15 17:06:17 +10:00
2023-01-12 15:11:45 +11:00
2024-01-11 13:17:34 +11:00
2023-10-18 12:11:53 +11:00
2024-01-11 13:17:34 +11:00
2024-06-16 10:48:01 +10:00
2024-02-16 09:44:22 +11:00
2024-03-30 13:34:36 +11:00
2025-09-09 20:16:49 +10:00
2025-05-09 15:29:44 +10:00
2025-07-15 21:35:54 +10:00
2025-09-09 20:05:58 +10:00
2025-12-20 19:11:48 +11:00
2024-12-14 19:52:09 +11:00
2025-12-20 19:11:48 +11:00
2025-05-03 16:34:21 +10:00
2024-02-24 15:14:21 +11:00
2024-02-21 14:50:55 +11:00
2025-11-22 09:40:03 +11:00
2025-11-07 20:02:58 +11:00
2026-01-01 15:21:55 +11:00
2023-10-18 12:11:53 +11:00
2024-03-07 12:02:40 +11:00
2024-03-07 12:02:40 +11:00
2025-12-20 19:15:36 +11:00
2025-12-14 19:41:45 +11:00
2024-03-07 12:02:40 +11:00
2025-10-12 15:38:40 +11:00
2023-09-19 10:43:11 +10:00
2025-12-08 20:30:47 +11:00
2024-02-24 15:03:30 +11:00
2025-12-06 19:08:37 +11:00
2025-07-14 16:26:26 +10:00