chibi-command 2.4.0__tar.gz → 2.4.2__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.
- {chibi_command-2.4.0 → chibi_command-2.4.2}/HISTORY.rst +12 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/PKG-INFO +13 -1
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/__init__.py +1 -1
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/ssh.py +22 -2
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/PKG-INFO +13 -1
- {chibi_command-2.4.0 → chibi_command-2.4.2}/setup.cfg +1 -1
- {chibi_command-2.4.0 → chibi_command-2.4.2}/setup.py +1 -1
- {chibi_command-2.4.0 → chibi_command-2.4.2}/AUTHORS.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/CONTRIBUTING.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/LICENSE +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/MANIFEST.in +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/README.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/archilinux/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/archilinux/pacman.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/archilinux/yay.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/centos/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/centos/dnf.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/centos/iptable.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/centos/yum.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/common.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/db.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/dd.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/dd.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/e2label.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/format.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/lsblk.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/disk/mount.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/echo.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/ffmpeg.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/file.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/image/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/image/convert.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/image/qr.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/lxc/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/lxc/delegate.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/lxc/lxc.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/mpd.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/ifconfig.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/interfaces.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/iwconfig.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/nmap.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/network/nmcli.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/nix/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/nix/locale.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/nix/systemd.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/nix/systemd_run.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/nix/user.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/qr.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/rabbitmq.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/rpm.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/rsync.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/sysctl.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/unittests/__init__.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/wmctrl.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command/xfce4.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/SOURCES.txt +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/dependency_links.txt +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/not-zip-safe +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/requires.txt +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/chibi_command.egg-info/top_level.txt +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/Makefile +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/authors.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/conf.py +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/contributing.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/history.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/index.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/installation.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/make.bat +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/readme.rst +0 -0
- {chibi_command-2.4.0 → chibi_command-2.4.2}/docs/usage.rst +0 -0
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
********************
|
|
6
|
+
2.4.2 ( 2026-03-25 )
|
|
7
|
+
********************
|
|
8
|
+
|
|
9
|
+
* se agrego el argumento faltante para su -c en el comando sudo
|
|
10
|
+
|
|
11
|
+
********************
|
|
12
|
+
2.4.1 ( 2026-03-25 )
|
|
13
|
+
********************
|
|
14
|
+
|
|
15
|
+
* se agrega alternativa a sudo con su en el comando de ssh
|
|
16
|
+
|
|
5
17
|
********************
|
|
6
18
|
2.4.0 ( 2026-03-25 )
|
|
7
19
|
********************
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,18 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.4.2 ( 2026-03-25 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* se agrego el argumento faltante para su -c en el comando sudo
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.4.1 ( 2026-03-25 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* se agrega alternativa a sudo con su en el comando de ssh
|
|
110
|
+
|
|
99
111
|
********************
|
|
100
112
|
2.4.0 ( 2026-03-25 )
|
|
101
113
|
********************
|
|
@@ -11,9 +11,24 @@ class Ssh( Command ):
|
|
|
11
11
|
def __init__( self, user, host, identity_file=None, *args, **kw ):
|
|
12
12
|
self._user = user
|
|
13
13
|
self._host = host
|
|
14
|
+
self._sudo_command = None
|
|
14
15
|
super().__init__( self._build_connection(), *args, **kw )
|
|
15
16
|
self.identity_file = identity_file
|
|
16
17
|
|
|
18
|
+
@property
|
|
19
|
+
def sudo_command( self ):
|
|
20
|
+
return self._sudo_command
|
|
21
|
+
|
|
22
|
+
@sudo_command.setter
|
|
23
|
+
def sudo_command( self, value ):
|
|
24
|
+
if value == "sudo" or value == "su":
|
|
25
|
+
self._sudo_command = value
|
|
26
|
+
elif value is None:
|
|
27
|
+
self._sudo_command = None
|
|
28
|
+
else:
|
|
29
|
+
raise NotImplementedError(
|
|
30
|
+
f"alternativa a sudo '{value}' no implementada" )
|
|
31
|
+
|
|
17
32
|
@property
|
|
18
33
|
def user( self ):
|
|
19
34
|
return self._user
|
|
@@ -41,9 +56,14 @@ class Ssh( Command ):
|
|
|
41
56
|
self.commands.append( *commands )
|
|
42
57
|
|
|
43
58
|
def _concatenate_commands( self, sudo=False, fail_fast=True ):
|
|
44
|
-
if sudo:
|
|
59
|
+
if sudo or self.sudo_command:
|
|
60
|
+
tmp_sudo = self.sudo_command
|
|
61
|
+
if tmp_sudo is None:
|
|
62
|
+
tmp_sudo = 'sudo'
|
|
63
|
+
if tmp_sudo == "su":
|
|
64
|
+
tmp_sudo = "su -c"
|
|
45
65
|
preview_commands = map(
|
|
46
|
-
lambda x: f'
|
|
66
|
+
lambda x: f'{tmp_sudo} {x.preview()}',
|
|
47
67
|
self.commands )
|
|
48
68
|
else:
|
|
49
69
|
preview_commands = map( lambda x: x.preview(), self.commands )
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,18 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.4.2 ( 2026-03-25 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* se agrego el argumento faltante para su -c en el comando sudo
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.4.1 ( 2026-03-25 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* se agrega alternativa a sudo con su en el comando de ssh
|
|
110
|
+
|
|
99
111
|
********************
|
|
100
112
|
2.4.0 ( 2026-03-25 )
|
|
101
113
|
********************
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|