Commit graph

113 commits

Author SHA1 Message Date
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
Duncan Ferguson
fb4b90886b Skip release tests unless releasing 2019-03-16 09:04:23 +00:00
Duncan Ferguson
ee3677dcd9 Fix Sort::Naturally error output 2019-01-14 20:05:27 +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
7670b0be39 Pull in all fixes from 4.13.x 2018-03-15 22:09:44 +00:00
Duncan Ferguson
f5f92105c6 Increase code test coverage slightly 2018-03-14 18:49:35 +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
0dbf7c6808 Add in external_command_pipe
Allow for specific commands to be passed into cssh via a command pipe.
This will allow for adding in new sessions and retiling existing
sessions.

More commands may be added over time.
2017-12-22 12:07:38 +00:00
Duncan Ferguson
93432c1580 Fix for multiple range expansion
Allow ranges such as 'h{a,b}{1,2}' to expand to 'ha1 ha2 hb1 hb2' rather
than return a perl error

Thanks to Markus Frosch (lazyfrosch).

Github issue #97.
2017-11-18 11:52:39 +00:00
James E Keenan
053bd6bbd1 Import of tempfile() not used; remove it. 2017-08-14 09:48:36 -04:00
Duncan Ferguson
df96d66150 Merge branch 'master' of https://github.com/AsharLohmar/clusterssh into AsharLohmar-master 2017-08-08 19:52:41 +01:00
Duncan Ferguson
f1446f9be3 Expand uses of ranges
Ranges can now be used on:

Ports:
        cssh localhost:{22001..22008}

FQDN's:
        cssh host{10..20}.domain.name

IP's:
        cssh 192.168.10.{10..20}
2017-05-17 22:35:46 +01:00
Duncan Ferguson
34f6c3e77d Fix perltidy test 2017-05-16 07:33:06 +01:00
Duncan Ferguson
fa01db1a03 Allow dashes in hostname when expanding in ranges
Hostname characters allowed here are currently any alpha-numberic, underscores
and dashes.

Github issue #89
2017-05-16 00:58:44 +01:00
Lohmar ASHAR
d1bc22ee22 added "fillscreen" option 2017-05-01 17:24:04 +02:00
Lohmar ASHAR
cd355f965d added support for specifying the desired number of columns or rows 2017-04-29 17:08:22 +02:00
Duncan Ferguson
8e1e3f8afd Fixup perltidy and MANIFEST tests 2017-03-16 22:59:54 +00:00
Duncan Ferguson
08fba7cc7f Add in test for ssh include directive 2017-03-16 22:51:05 +00:00
Duncan Ferguson
fc66ddc34b Fixup some code typos in the pull request 2017-03-16 22:42:06 +00:00
Duncan Ferguson
4266c2a06e Allow terminal positioning algorithm to be configurable
Previous change "Take into account WM decorations when tiling (Github pull
request #66) (thanks to Andrew Stevenson)" has caused problems on some
systems but improved tiling on others, so make the algorithm configurable
to use the original one (default) or the new style.

To be revisited when all the window handling code is moved into a separate
module
2017-03-07 22:01:27 +00:00
Duncan Ferguson
60d67f911b Fix for perltidy tests 2017-03-04 18:36:44 +00:00
Duncan Ferguson
196d7b79bf Fix for tests againsst 'debug' and 'dump' options 2017-03-04 18:34:02 +00:00
Duncan Ferguson
41fe0714b5 Fix a logic bug around --debug option handling
the Base.pm debug method was being overridden within Getopt.pm when all
command line options are turned into accessors.  Since this is done on the
fly there is no compiler warning generated for it.

Also renamed a method in base from 'output' to 'stdout_output' as two objects
had the same method name - Getopt::output and Base::output
2017-03-03 22:52:32 +00:00
Duncan Ferguson
067bab1894 Add in 'unique_servers' into the config file
This was missed previously and should have been there

Github issue #70
2016-10-18 21:23:15 +01:00
Duncan Ferguson
142d4ddd66 Merge branch 'master' of github.com:duncs/clusterssh 2016-09-07 09:26:09 +01:00
Duncan Ferguson
7974687cfb Option to hide console menubar
Add option in the config file to hide the menu (Github issue #69)
2016-09-07 09:25:44 +01:00
Slaven Rezic
ab1dde0e8c fix skip condition 2016-07-24 11:50:16 +02:00
Duncan Ferguson
eb586e1281 Show env vars when running tests in verbose mode 2016-07-23 10:54:27 +01:00
Duncan Ferguson
d41c2b0400 Find fake xterm on systems without it 2016-05-01 09:17:32 +01:00
Duncan Ferguson
0ecf12256d Fix some tests 2016-04-29 18:40:55 +01:00
Duncan Ferguson
8b8a692b6c Rework hostname expansion
Didn't like relying on the bash shell for expansions - instead recoded it to be pure-perl so it is more cross-platform.

Github issue #53
2016-04-29 18:33:50 +01:00
Duncan Ferguson
454f30978d Fixed tests on systems where bash is not /bin/bash
Some systems, such as BSD, have bash stored in /usr/local/bin

Remove the assumption that bash is /bin/bash

Github issue #60
2016-04-08 21:00:20 +01:00
Duncan Ferguson
596ef164d3 Another 'xterm' test fix 2016-03-26 08:27:43 +00:00
Duncan Ferguson
3b22f44680 Fix tests on Travis CI via Github
The Travis CI test systems do not have xterm installed; in the specific test that needs it, add in a path to a 'fake' xterm to allow it to be found
2016-03-26 08:18:48 +00:00
Duncan Ferguson
b330457f99 Add in bash expansions on hostnames
Allow hostnames to be expanded using bash where a { is in the host name definition

Github issue #53
2016-02-13 08:48:20 +00:00
Duncan Ferguson
c5c2c4fc0e Fix option and configuration for 'extra_tag_file'
Option was documented but did not work correctly.

Github issue #51
2016-01-23 17:02:52 +00:00
Duncan Ferguson
dc041e730d Force English locale for all tests
Force use of English in tests for the moment, for those users that
have a different locale set, since errors are hardcoded in the test files
2015-11-28 12:38:39 +00:00
Duncan Ferguson
7706fdc45e Amend key_quit from 'Control-q' to 'Alt-q'
This is to remove a long-standing conflict with 'Control-s/Control-q'

Github issue #50
2015-11-26 08:55:18 +00:00
Duncan Ferguson
fb475e27f4 Alter behaviour of --list option
--list now takes optional arg of a tag.  If tag is provided then it will output hosts linked to that tag.  If no tag is provided then list available tags (as now).

Also tied in with --quiet|-Q option.  If -Q provided then 'headers' are not output and data is printed on one line for easier parsing by other scripts.
2015-11-15 22:53:04 +00:00
Duncan Ferguson
43d4f1d246 Remove 'terminal_chdir' code
Code previously added did not work as intended, so removed as it was unnecessary.

Leave in macro substitution for '--action' though as this resolves Github issue #42.

Rework wording in Changes file
2015-11-15 21:12:10 +00:00
Duncan Ferguson
ffe6a9d283 Add config to allow terminals to run in given dir
Add in terminal_chdir and terminal_chdir_path so that when terminals start they are run in a specific directory.

Documentation to be added.

Github issue #42
2015-11-09 22:46:02 +00:00
Duncan Ferguson
4c38c4d1f4 Fix perl intepreter for use under perlbrew 2015-11-04 09:56:52 +00:00
Duncan Ferguson
94d3bca20e Merge pull request #43 from mperry2/move_send_menu
Move send menu file to $HOME/.clusterssh directory
2015-10-01 07:32:55 +01:00
Duncan Ferguson
595cfab20c Improve host tests t/10host.t
Use a randomly generated hostname to prevent a clash where a user had a host called 'hostname' on their network

Github issue #23
2015-09-30 17:45:45 +01:00
Matt Perry
dda4297711 Move send menu file to $HOME/.clusterssh directory
Move send menu file from $HOME/.csshrc_send_menu to $HOME/.clusterssh
directory.
2015-09-26 09:25:52 -07:00
Duncan Ferguson
b77830dea5 Fix configuration tests for 'use_natural_sort=0' 2015-09-21 22:35:16 +01:00
Duncan Ferguson
fb4d991053 Fix some tests failures
Fix failures picked up via cpantesters
- Bump version
- Remove accidental duplicate option in test file
- Add TODO to test for duplicate options correctly
- Fix test error when @ARGV is set to undef when this should never happen
2014-12-20 18:05:08 +00:00
Duncan Ferguson
9b21aaaa61 Fix case when the terminal isn't installed
Fix the case when the configured terminal isn't actually on the system.  Alert for the problem rather than attempt to continue and hang.
2014-12-12 17:18:19 +00:00