multiSSH3 5.33__tar.gz → 5.34__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of multiSSH3 might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multiSSH3
3
- Version: 5.33
3
+ Version: 5.34
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multiSSH3
3
- Version: 5.33
3
+ Version: 5.34
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -37,7 +37,7 @@ except AttributeError:
37
37
  # If neither is available, use a dummy decorator
38
38
  def cache_decorator(func):
39
39
  return func
40
- version = '5.33'
40
+ version = '5.34'
41
41
  VERSION = version
42
42
 
43
43
  CONFIG_FILE = '/etc/multiSSH3.config.json'
@@ -1962,9 +1962,8 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
1962
1962
  # we use the stat bar to display the key presses
1963
1963
  encodedLine = ''.join(__keyPressesIn[lineToDisplay]).encode().decode().strip('\n') + ' '
1964
1964
  #stats = '┍'+ f"Send CMD: {encodedLine}"[:max_x - 2].center(max_x - 2, "━")
1965
- stats = f"Send CMD: {encodedLine}"
1966
1965
  # format the stats line with chracter at curser position inverted using ansi escape sequence
1967
- stats = f'{stats[:curserPosition]}\x1b[7m{stats[curserPosition]}\x1b[0m{stats[curserPosition + 1:]}'
1966
+ stats = f'Send CMD: {encodedLine[:curserPosition]}\x1b[7m{encodedLine[curserPosition]}\x1b[0m{encodedLine[curserPosition + 1:] if curserPosition < len(encodedLine) else ""}'
1968
1967
  if stats != old_stat :
1969
1968
  old_stat = stats
1970
1969
  # calculate the real curser position in stats as we centered the stats
@@ -1980,6 +1979,7 @@ def __generate_display(stdscr, hosts, lineToDisplay = -1,curserPosition = 0, min
1980
1979
  # stat_window.addnstr(0, curserPositionStats + 1, stats[curserPositionStats + 1:], max_x - 1 - curserPositionStats)
1981
1980
  # stat_window.refresh()
1982
1981
  _curses_add_string_to_window(window=stat_window, y=0, line=stats, color_pair_list=[-1, -1, 1],centered=True,fill_char='━',lead_str='┍',box_ansi_color=box_ansi_color)
1982
+ stat_window.refresh()
1983
1983
  if bottom_border:
1984
1984
  #target_length = max_x - 2 + len('\x1b[33m\x1b[0m\x1b[31m\x1b[0m\x1b[32m\x1b[0m')
1985
1985
  #bottom_stats = '└'+ f" Total: {len(hosts)} Running: \x1b[33m{host_stats['running']}\x1b[0m Failed: \x1b[31m{host_stats['failed']}\x1b[0m Finished: \x1b[32m{host_stats['finished']}\x1b[0m Waiting: {host_stats['waiting']} "[:target_length].center(target_length, "─")
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='multiSSH3',
5
- version='5.33',
5
+ version='5.34',
6
6
  description='Run commands on multiple hosts via SSH',
7
7
  long_description=open('README.md').read(),
8
8
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes