multiSSH3 5.62__py3-none-any.whl → 5.63__py3-none-any.whl

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.

multiSSH3.py CHANGED
@@ -54,10 +54,10 @@ except AttributeError:
54
54
  # If neither is available, use a dummy decorator
55
55
  def cache_decorator(func):
56
56
  return func
57
- version = '5.62'
57
+ version = '5.63'
58
58
  VERSION = version
59
59
  __version__ = version
60
- COMMIT_DATE = '2025-04-17'
60
+ COMMIT_DATE = '2025-04-21'
61
61
 
62
62
  CONFIG_FILE_CHAIN = ['./multiSSH3.config.json',
63
63
  '~/multiSSH3.config.json',
@@ -2225,7 +2225,10 @@ def generate_output(hosts, usejson = False, greppable = False):
2225
2225
  # remove hosts with returncode 0
2226
2226
  hosts = [dict(host) for host in hosts if host.returncode != 0]
2227
2227
  if not hosts:
2228
- return 'Success'
2228
+ if usejson:
2229
+ return '{"Success": true}'
2230
+ else:
2231
+ return 'Success'
2229
2232
  else:
2230
2233
  hosts = [dict(host) for host in hosts]
2231
2234
  if usejson:
@@ -2976,6 +2979,7 @@ def main():
2976
2979
  parser.add_argument('-ci','--copy_id', action='store_true', help='Copy the ssh id to the hosts')
2977
2980
  parser.add_argument('-I','-nh','--no_history', action='store_true', help=f'Do not record the command to history. Default: {DEFAULT_NO_HISTORY}', default=DEFAULT_NO_HISTORY)
2978
2981
  parser.add_argument('-hf','--history_file', type=str, help=f'The file to store the history. (default: {DEFAULT_HISTORY_FILE})', default=DEFAULT_HISTORY_FILE)
2982
+ parser.add_argument('--script', action='store_true', help='Run the command in script mode, short for -SCRIPT or --no_watch --skip_unreachable --no_env --no_history --greppable --error_only')
2979
2983
  parser.add_argument("-V","--version", action='version', version=f'%(prog)s {version} @ {COMMIT_DATE} with [ {", ".join(_binPaths.keys())} ] by {AUTHOR} ({AUTHOR_EMAIL})')
2980
2984
 
2981
2985
  # parser.add_argument('-u', '--user', metavar='user', type=str, nargs=1,
@@ -2993,6 +2997,14 @@ def main():
2993
2997
  if unknown:
2994
2998
  eprint(f"Warning: Unknown arguments, treating all as commands: {unknown!r}")
2995
2999
  args.commands += unknown
3000
+
3001
+ if args.script:
3002
+ args.no_watch = True
3003
+ args.skip_unreachable = True
3004
+ args.no_env = True
3005
+ args.no_history = True
3006
+ args.greppable = True
3007
+ args.error_only = True
2996
3008
 
2997
3009
  if args.generate_config_file or args.store_config_file:
2998
3010
  if args.store_config_file:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiSSH3
3
- Version: 5.62
3
+ Version: 5.63
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
@@ -0,0 +1,6 @@
1
+ multiSSH3.py,sha256=VroQaLssLEEanOe2tUMi7necPNQFDPoGsBNeyoNxMYg,146375
2
+ multissh3-5.63.dist-info/METADATA,sha256=_DHi1kk_S1t2Oa1CEdPDlCIqUsbtfTnUjJVgTftJMxk,18093
3
+ multissh3-5.63.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
4
+ multissh3-5.63.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
+ multissh3-5.63.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
+ multissh3-5.63.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- multiSSH3.py,sha256=aIPftXdNHKopUv-DIOPcBxQd9IQhCAg4mNLgxefh3zM,145959
2
- multissh3-5.62.dist-info/METADATA,sha256=TEWayZf__9rv11wQTJp8kSY7IULgqQHOPf9CJefLooI,18093
3
- multissh3-5.62.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
4
- multissh3-5.62.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
- multissh3-5.62.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
- multissh3-5.62.dist-info/RECORD,,