First of all, thank you for the work on this interesting and intriguing tool.
I am testing it on Archlinux.
TLDR: I am 99% sure you can remove "colordiff" from "ssh-tools". Please review and confirm
I noticed that the Archlinux official package has "colordiff", https://www.colordiff.org/ as an "optional" dependency for your tool.
optdepends=(
'colordiff: for diff files'
That got me intrigued.
This seems unnecessary and redundant. "Colordiff" was/is a perl tool needed when diff didnt support color. It seems completely redundant now. diff --color option was added to GNU diffutils 3.4 (2016年08月08日) . By now 99.9% ofl all Linux distros should have it, I guess.
man diff
--color[=WHEN]
color output; WHEN is 'never', 'always', or 'auto'; plain
--color means --color='auto'
--palette=PALETTE
the colors to use when --color is active; PALETTE is a
colon-separated list of terminfo capabilities
I noticed that you have on your code stuff like,
function supports_colordiff() {
type colordiff &> /dev/null
}
An the call the tool "colordiff" like this
xxxyyyzzz | colordiff
As you say on the man page "ssh-diff":
Diff Options:
All options your local diff command supports ( except '-r' ).
See 'man diff' and 'diff --help' for more information.
So, I made sure to remove the tool "colordiff" from my system. And tried:
ssh-diff --color=always /etc/os-release SOME_SSH_HOST
Seem to work perfectly. So here I conclude the tool "colordiff" is completely irrelevant.
First of all, thank you for the work on this interesting and intriguing tool.
I am testing it on Archlinux.
TLDR: I am 99% sure you can remove "colordiff" from "ssh-tools". Please review and confirm
I noticed that the Archlinux official package has "colordiff", https://www.colordiff.org/ as an "optional" dependency for your tool.
```
optdepends=(
'colordiff: for diff files'
```
That got me intrigued.
This seems unnecessary and redundant. "Colordiff" was/is a perl tool needed when diff didnt support color. It seems completely redundant now. diff --color option was added to GNU diffutils 3.4 (2016年08月08日) . By now 99.9% ofl all Linux distros should have it, I guess.
man diff
```
--color[=WHEN]
color output; WHEN is 'never', 'always', or 'auto'; plain
--color means --color='auto'
--palette=PALETTE
the colors to use when --color is active; PALETTE is a
colon-separated list of terminfo capabilities
```
I noticed that you have on your code stuff like,
```
function supports_colordiff() {
type colordiff &> /dev/null
}
```
An the call the tool "colordiff" like this
```
xxxyyyzzz | colordiff
```
As you say on the man page "ssh-diff":
```
Diff Options:
All options your local diff command supports ( except '-r' ).
See 'man diff' and 'diff --help' for more information.
```
So, I made sure to remove the tool "colordiff" from my system. And tried:
```
ssh-diff --color=always /etc/os-release SOME_SSH_HOST
```
Seem to work perfectly. So here I conclude the tool "colordiff" is completely irrelevant.