Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
7b3c4db8f0
[libcalamares] Redacted -> RedactedCommand
...
- For logging (shell) commands where a password might become visible, use
RedactedCommand. Rename it to allow for other kinds of redaction, too.
2021-11-16 14:21:46 +01:00
Adriaan de Groot
5e6d292235
FIXUP
2021-11-05 16:31:47 +01:00
Adriaan de Groot
faf1d68d32
[libcalamares] Tidy up processing of process output
...
- force C locale on processes
- split trailing output if output per-line-processing is active
2021-11-05 16:26:45 +01:00
Adriaan de Groot
57c174c37f
[libcalamares] Clean up QProcess includes
2021-11-02 23:46:26 +01:00
Adriaan de Groot
aa315c0696
[libcalamares] Handle last-output-line without newline
2021-11-02 22:58:41 +01:00
Adriaan de Groot
953b899f75
[libcalamares] Allow Runner instances to collect output
2021-11-02 22:50:13 +01:00
Adriaan de Groot
89824a9e0d
[libcalamares] Fix up Runner (as a replacement for current system code)
2021-11-02 22:27:33 +01:00
Adriaan de Groot
f0104af1c3
[libcalamares] Expand tests on Runner internals
2021-11-02 22:27:33 +01:00
Adriaan de Groot
0b943e801c
[libcalamares] Begin implementing Runner
...
This copies a bunch of code from the System methods for running,
and then #if 0's them to get it to compile. Add some basic
directory-management.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
b9dac6eef8
[libcalamares] Small step in implementation
2021-11-02 22:27:32 +01:00
Adriaan de Groot
2de09d4001
[libcalamares] Start refactor of running-a-process support
...
The background idea is that, while CalamaresUtils::System::runCommand()
is a useful general API, it is
- still missing flexibility
- lacking a way to process output from the command "as it happens"
Waiting until the process ends, and then reading all stdout, is
inconvenient for processes that produce a **lot** of output,
and also makes it impossible to report progress. One module
in calamares-extensions has its own run-a-process implementation
for reading output, and this branch aims to introduce something
similar into Calamares core.
2021-11-02 22:27:32 +01:00