-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable colors #150
Disable colors #150
Conversation
Something possible goes wrong, after this PR:
|
Seems some regression appeared once again. tasks:
- name: print
commands:
- name: print
echo: "hello world" Run with: spot v1.12.0-b327c23-2023-11-13T20:20:26Z
[104.xxx.yy.xxx:xx] run task "print", commands: 1
[104.xxx.yy.xxx:xx] completed command "print" {echo: hello world} (497ms)
[104.xxx.yy.xxx:xx] completed task "print", commands: 1 (1.444s) All colors are "red". Thought it was something with term color scheme. Changed scheme, but everything remains the same in red colors. Just in case uninstalled spot with System: spot v1.12.0-b327c23-2023-11-13T20:20:26Z
[104.xxx.yy.105:xx] run task "print", commands: 1
[104.xxx.yy.105:xx] run command "print"
[104.xxx.yy.105:xx] > echo "hello world"
[104.xxx.yy.105:xx] > hello world
[104.xxx.yy.105:xx] completed command "print" {echo: hello world} (1.235s)
[104.xxx.yy.105:xx] completed task "print", commands: 1 (2.189s) |
I don't have any good explanation why everything is red for you, but can see only two possibilities:
|
I didn’t see output for |
Add support of b/w output without colorization per host. The new param is
--no-color
.The change was way too complicated for such a simple functionality because of the tight coupling between the core parts and the logger. I have refactored logging support and made it injectable.