Commit graph

168 commits

Author SHA1 Message Date
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
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
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
d9b3de5d55 Slightly more debug infoi around ssh lookups 2017-08-04 07:52:10 +01:00
Duncan Ferguson
4a1f0ed5fd Allow for debug to be enabled via the environment 2017-08-04 07:51:44 +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
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
593b241e6a Fix typo 2017-04-13 09:05:53 +01:00
Duncan Ferguson
d822ecd81d Fix code for perltidy test 2017-04-13 09:04:23 +01:00
Duncan Ferguson
a3373813db Include the version number in the man page 2017-04-13 08:43:29 +01:00
Duncan Ferguson
fc66ddc34b Fixup some code typos in the pull request 2017-03-16 22:42:06 +00:00
Duncan Ferguson
07f59738e6 Fix pod coverage test 2017-03-16 22:33:37 +00:00
Duncan Ferguson
7a08f3239e Fix perltidy test 2017-03-16 22:30:41 +00:00
azenet
3e3ed2c1cc fix missing $self in call to read_ssh_file 2017-03-15 13:17:33 +01:00
azenet
f9c6120477 add support for .ssh/config include directive 2017-03-14 13:43:12 +01: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
0fb0ba10c2 Fix more problems with debugging 2017-03-04 11:36:27 +00:00
Duncan Ferguson
be418fa0d0 Correct option used 2017-03-04 11:11:35 +00:00
Duncan Ferguson
bc7805ca4c Update copyright year 2017-03-04 11:05:20 +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
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
Duncan Ferguson
7822d337f7 Fix typo in docs 2016-09-07 09:11:41 +01:00
Duncan Ferguson
c83e9e785f Use perltidy 2016-05-01 09:45:41 +01:00
Duncan Ferguson
b72b748eff Fix build and test on perl-5.8.9 2016-05-01 09:24:14 +01:00
Duncan Ferguson
08adb3766b Fix File::Glob::bsd_glob use on 5.14.4
Perl 5.14.4 did not export bsd_glob - you have to call it from the module explitly.  This makes the code more backwards compatible with perl versions.
2016-04-30 10:22:06 +01:00
Duncan Ferguson
33fa9b9911 Document Range module methods 2016-04-30 09:06:16 +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
Andrew
ceda2524cf Add POD docs for expand_filename 2016-03-16 12:56:25 +01:00
Andrew
1c6a709f3a Apply style guidelines 2016-03-16 12:53:15 +01:00
Andrew
6b752e583b Expand ~ and $HOME when looking for files 2016-03-08 18:43:59 +01: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
7e55006acd Merge branch 'master' of github.com:duncs/clusterssh 2015-12-07 16:32:50 +00:00
tony mancill
41162764c2 correct typo in manpage 2015-12-03 22:17:02 -08:00
Duncan Ferguson
1a103722f3 Failure to find terminal binary should not be fatal
This will allow the initial build to complete without issue so that the user can install the appropriate terminal, or set the correct config, after installation.

Warnings will be displayed when the program is used.
2015-12-03 21:58:32 +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
96c73a0080 Add in csftp command 2015-11-15 22:17:29 +00:00
Duncan Ferguson
54499686bf Perltidied 2015-11-15 22:05:14 +00:00