Commit graph

310 commits

Author SHA1 Message Date
Duncan Ferguson
9431ccc863 Re-release/version bump
Re-release due to poor release upload to CPAN (4.17)
2024-10-19 12:57:45 +01:00
Duncan Ferguson
cc90a9a3fb Run through 'dzil perltidy' 2024-10-17 21:12:23 +01:00
Duncan Ferguson
fea0b80d48
GitHub actions (#161) 2024-10-16 09:21:26 +01:00
Duncan Ferguson
46c9bfc067 Add in 'hostname_override' configuration
Add in a new configuration option to override the system hostname
rather than rely on DNS (which may not be correctly configured on
the system)

Github issue #158
2024-10-14 22:48:50 +01:00
Andrew Stevenson
4ea91d4e68 Don't check config is a HASH
At some point `$self->config()` started returning a `bless`ed object so
checking it was a `HASH` began to fail, preventing someone using natural
sort. AFAIK the config option always has to behave as a hash so it should be
safe to avoid this test.
2023-07-31 16:40:10 +02:00
Duncan Ferguson
b302a7724f
Merge pull request #149 from GerMalaz/4k_displays_bigger_menu
Bigger menu for 4k (or bigger) displays
2023-06-11 11:40:59 +01:00
Duncan Ferguson
387190e8f6
Merge pull request #138 from babs/override_via_env
Override config via cssh_* environment variables
2023-06-11 11:40:26 +01:00
tony mancill
5eae528662 Don't try to open a directory as the config file
This patches load_configs() to check that the $config being opened is
actually a file and not a directory, which was tripping up the tests
that assert that there is an error when the config file cannot be
written because a directory already exists.

Until recently, the attempt to read the directory as a file was being
silently ignored due to a latent bug in Perl; more about that here:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016369

and

  https://github.com/Perl/perl5/pull/20103

This addresses a bug filed against the Debian package for clusterssh
when t/15config.t tests started failing after the Perl bug was fixed.

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026735
2023-01-04 22:07:41 -08:00
Gerardo Esteban Malazdrewicz
00d8aa0ebd Bigger menu for 4k (or bigger) displays
Detects screen size based on $xdisplay data.
If 4k or bigger uses Nimbus 14 for the menu.

Fixes #136.
2023-01-04 05:24:00 -04:00
Duncan Ferguson
e11cc83620
Merge pull request #141 from tmancill/minor-typos
address minor typos in manpage for ClusterSSH and ClusterSSH::Host
2021-06-29 08:48:48 +01:00
tony mancill
4b317108fe
address minor typos in manpage for ClusterSSH and ClusterSSH::Host 2021-06-27 12:23:12 -07:00
tony mancill
0b5b5c8608 warn user when short-circuiting initialisation
See Debian bug report and discussion here:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989679

The bug submitter suggests using a mechanism like the following to
prevent test failures when Tk isn't present:
  5cf873739e/t/config-model-ui.t (L96)
2021-06-27 12:07:49 -07:00
Damien Degois
5ddb7dbe83 Override confuration via environment variable using cssh_ prefix (works with upper and lower case)
Squash commit.
2021-04-01 10:28:09 +02:00
Duncan Ferguson
6cbec687bd Merge branch 'master' of github.com:duncs/clusterssh 2020-06-20 10:33:19 +01:00
Duncan Ferguson
c3a2336b09 Further fix for resolve_names error
Correct a further two method calls
2020-06-20 10:30:48 +01:00
Petr Vorel
bf6e9d0648 helper: Fix missing space separator for ssh_args
Docs suggest using ssh_args without space at the end
ssh_args = "-x -o ConnectTimeout=10"

+ remove also trailing space in another line.

Fixes: 82f8845 ("Add in 'command_pre' and 'command_post' configs")

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
2020-05-22 11:20:30 +02:00
Duncan Ferguson
276cab7014 Fix 'Add Host' menu error finding 'resolved_names' 2020-04-19 20:08:07 +01:00
Duncan Ferguson
82f88450d0 Add in 'command_pre' and 'command_post' configs
This allows for running commands before and after the comms method in
the command pipeline, such as setting up python virtual environments
and piping output through other commands
2020-04-18 17:05:00 +01:00
Duncan Ferguson
7fe7c69769 Include all utilies within each man page
Explicitly list each util in the help pages to make it more obvious they
exist
2020-04-18 13:13:47 +01:00
Duncan Ferguson
6ec912aac2 Release 4.14 2019-08-21 21:15:44 +01:00
Duncan Ferguson
dab4fa2237 Add in macro_user_1 .. 4
Add in user macros that can run an external command to pass into each
client terminal session.  Ensure that if no user command is defined that
the expected 'Alt-1' to 'Alt-4' keys are passed into the terminals
instead.

Include docs and examples of how they might be used.
2019-03-28 22:52:03 +00:00
Petr Vorel
e039fef919 doc: Fix typo s/quiting/quitting/
Fixes: #118

Reported-by: Tony Mancill <tmancill@debian.org>
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
2019-03-16 20:20:02 +01:00
Duncan Ferguson
40079d23d9 Perltidy 2019-03-16 14:56:49 +00:00
Duncan Ferguson
6529bccdbd Correct macro_hostname to be as per the docs
macro_hostname should be the FQDN of the server where cssh is being run
2019-03-16 14:54:31 +00:00
Duncan Ferguson
537c4c2572 Add 'auto quit' setting to the File menu
The initial value for "auto quit" is taken from the config file but can
be overridden within the console UI for that session.

Although menu code for "auto close" is added, the functionality does not
work as expected.  This is because the setting is put onto each terminal
when it is opened and is not updated thereafter.
2019-03-16 14:35:16 +00:00
Duncan Ferguson
40d0bd4b8f Include generated README in the repository
This is so releases downlaoded directly from github pass tests and
also so the project page has the text available
2019-03-16 08:14:06 +00:00
Duncan Ferguson
30a0817d3c Do not pull in Tk if build/test env vars set
This is to fix an ssue when generating POD on travis servers during
testing
2018-11-25 14:30:03 +00:00
Duncan Ferguson
e5c33c6e13 Version bump and travis fix
- Amend min version of Getopt::Long for Travis
- Bump the dist version
2018-11-25 13:03:30 +00:00
Duncan Ferguson
e857392130 First round of Dist::Zilla changes
Start process to convert to using Dist::Zilla to make life
easier for both the author and for users
2018-11-25 00:08:31 +00:00
Duncan Ferguson
47fd5237f9 Update to Perl::Tidy 20181117 2018-11-17 22:24:18 +00:00
Duncan Ferguson
717e7af776 Fix for 'bad pad value "3m"' error when using Tk 804.034
It appears Tk::Dialog from Tk version 804.034 has a bug in it that was
not in Tk 804.033.  Swap from using Tk::Dialog to Tk::DialogBox to
avoid the bug until it can be reported/fixed upstream..

Github issue #108
2018-11-17 22:07:50 +00:00
Duncan Ferguson
7670b0be39 Pull in all fixes from 4.13.x 2018-03-15 22:09:44 +00:00
Duncan Ferguson
915a55b3bd Perltidy 2018-03-09 13:40:31 +00:00
Duncan Ferguson
7d515388a2 Improvements to docs
Amend links and wording in SUPPORT and REPORTING BUGS sections
2018-03-09 09:18:39 +00:00
Duncan Ferguson
2e0f63360b Update version 2018-03-09 08:51:35 +00:00
Duncan Ferguson
5b827fd163 Minor release 4.13.1 for perltidy test fix 2018-03-05 10:09:38 +00:00
Duncan Ferguson
651c756f55 Fix tests for updated Perl::Tidy 2018-03-03 15:29:13 +00:00
Duncan Ferguson
f27c42c795 Improve test coverage 2017-12-27 16:35:35 +00:00
Duncan Ferguson
c807b52129 Improve test coverage 2017-12-27 13:44:31 +00:00
Duncan Ferguson
5615bbc5b1 Update copyright year to 2018 2017-12-27 11:03:52 +00:00
Duncan Ferguson
b9731d0e35 Fix tests
- perltidy
- add pod to new modules
- code fix for accessing config via Base.pm
- fix some minor typos
2017-12-27 10:58:28 +00:00
Duncan Ferguson
4dcba4d693 Apply console position fix 2017-12-27 10:22:07 +00:00
Duncan Ferguson
3a7e832855 Move all Tk code into its own module 2017-12-27 10:19:53 +00:00
Duncan Ferguson
3d571b2801 Start reworking Tk into a module 2017-12-27 10:17:46 +00:00
Duncan Ferguson
7163916a99 Mark new dev version (4.13_01) 2017-12-27 10:16:29 +00:00
Duncan Ferguson
1c03f947bf Perltidy 2017-12-24 12:26:23 +00:00
Duncan Ferguson
c50b6fff14 Object configured console window position
The console position is always put at the top left corner rather than
the configured position due to the combination of:

    `$mw->update;$mw->withdraw`

Only withdraw the window if it is not already withdrawn.

Thanks to eserte for the fix.

Github issue #100
2017-12-24 12:09:40 +00:00
Duncan Ferguson
4a72b1cab3 Ensure ssh_args is unset if config file line is empty
If the config file has 'ssh_args=', ensure the options are removed and
not set as the default specified in the getopts code
2017-12-23 22:45:28 +00:00
Duncan Ferguson
37ce2b8a0d v4.12; fix undefined value error 2017-12-23 12:46:48 +00:00
Duncan Ferguson
d8addf58d1 Release 4.11 2017-12-22 12:17:40 +00:00