Qubasa
2df1179666
clan-cli: Improved --debug output by indenting commands, add TRACE_DEPTH environment variable
2024-11-11 21:23:53 +07:00
Jörg Thalheim
aba5ae93ad
fix resource leak in case need_user_terminal is used
2024-10-29 13:54:12 +01:00
DavHau
db0fdba384
cli: set needs_user_terminal for all ssh commands
2024-10-23 19:40:50 +07:00
DavHau
28026a9b92
cmd.run: add needs_user_terminal to unbreak sudo
2024-10-23 17:37:54 +07:00
Jörg Thalheim
6140c53de0
use actual performance timer to measure how long a process takes
2024-10-10 17:59:56 +02:00
Jörg Thalheim
71e7ecd49c
improve terminating processes on error
2024-10-10 17:59:26 +02:00
Jörg Thalheim
1c9ea1d5b8
cmd/run: remove unnecessary wait
2024-10-08 17:51:55 +00:00
Qubasa
0f79c6a850
clan-cli: Improve CmdOut output
2024-10-07 01:36:40 +02:00
Jörg Thalheim
46c0b7cb2e
don't leak memory in global table unless we want to record performance
2024-10-01 19:32:00 +02:00
Jörg Thalheim
d5d6774124
fix file descriptor leak in cmd.run()
...
we were leaking pipes.
2024-10-01 19:27:47 +02:00
Jörg Thalheim
ad3daa3ce4
add RET, Q, RSE lint
2024-09-02 15:58:49 +02:00
Jörg Thalheim
15ff74f7c2
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
35839ef701
enable bug-bear linting rules
2024-09-02 13:26:07 +02:00
lassulus
578162425d
Revert "clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py."
...
This reverts commit ba86b49952 .
2024-06-03 12:25:20 +02:00
Qubasa
ba86b49952
clan-cli: cmd.py uses pseudo terminal now. Remove tty.py. Refactor password_store.py to use cmd.py.
2024-06-02 16:52:31 +02:00
Qubasa
d513f66170
clan-cli: Refactor machines/update.py to cmd.run
2024-06-02 10:00:23 +02:00
Qubasa
1a39957dbb
clan-cli: Refactor subprocess.run to cmd.run. tea-create-pr: Fix missing fail-on-change for treefmt
2024-06-02 09:53:24 +02:00
a-kenji
eee99730d1
clan: add run_no_stdout function suppressing stdout
...
Add the `run_no_stdout` function suppressing stdout by default.This
keeps the noise down on most commands, while still
stayingdebuggable.Stdout will be active when the `--debug` flag is
passed to the cli.
Fixes #1443
2024-05-28 11:13:55 +02:00
Qubasa
e4896814f2
clan_cli: Add TimeTable class to cmd.py. Fix bugs in Machine rewrite
2024-03-08 22:01:54 +07:00
Qubasa
a6f652bdfc
clan_cli,clan_vm_manager: Moved profiler to clan_cli. Add cmd timer to see how long run commands take
2024-03-06 17:12:20 +07:00
Jörg Thalheim
9fef40258a
cmd: skip print for zero-length bufs
2024-01-30 10:30:25 +07:00
Jörg Thalheim
796ef76893
cmd: add a timeout in select
2024-01-12 00:20:22 +01:00
Qubasa
05aaa180e0
cmd.py: Fix busy loop.
2024-01-12 00:13:21 +01:00
Qubasa
1d489438bd
Re-added rlist.remove to counter busy loop
2024-01-12 00:08:15 +01:00
Qubasa
0941367bb3
cmd.py: Fix deadlock because of incorrect select usage
2024-01-11 23:03:14 +01:00
Qubasa
3351f87a7f
Removed duplicate logging messages
2024-01-11 22:46:29 +01:00
Qubasa
d1ca0eaf80
Identified deadlocking funciton
2024-01-11 22:28:35 +01:00
Qubasa
f7c6ab5888
Working test_secrets_generate
2024-01-11 21:48:39 +01:00
Qubasa
16b043f508
cmd.py: Fixing bug: missing output because of forgotten flush() call
2024-01-11 21:11:49 +01:00
Qubasa
2ae439ec52
cmd.py refactor part 4
2024-01-11 21:11:49 +01:00
Qubasa
64846eb395
Fixed bug, where exception is raised where there shouldn't be raised one
2024-01-10 18:46:54 +01:00
Qubasa
699515ca89
Added ClanCmdError. cmd.run now returns this error
2024-01-10 17:58:39 +01:00
Qubasa
626e5558f3
Fix cmd to default print on all outputs. Default print on stderr
2024-01-10 17:31:11 +01:00
Qubasa
c41bc10325
nix fmt
2024-01-10 17:19:33 +01:00
Qubasa
54f2eba1cc
nix fmt
2024-01-10 17:19:12 +01:00
Qubasa
40beda884c
Updated cmd.py with Mic92 changes to fit previous changes
2024-01-10 17:18:21 +01:00
Qubasa
ba05589af2
Refactor subprocess to cmd.py part 2
2024-01-10 12:11:29 +01:00
Jörg Thalheim
fa00bb522b
cmd: rework redirecting stdout/stderr
2024-01-09 17:34:43 +01:00
Qubasa
e4a7f68b0e
Fixed cmd.py writing to stderr
2024-01-02 17:21:06 +01:00
Qubasa
3f55c688d9
Refactor subprocess to cmd.py part 1. Fixed clan_uri test.
2024-01-02 17:21:06 +01:00
Qubasa
ef827af89c
Fixed unsafe dirs.py urlquoting, improved cmd.py run func
2024-01-02 17:21:06 +01:00
Qubasa
5c143bf2da
Finished clan history command. Ported remaining async to sync funcs
2023-12-14 20:57:31 +01:00