chibi-command 2.4.3__tar.gz → 2.4.5__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.3 → chibi_command-2.4.5}/HISTORY.rst +13 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/PKG-INFO +14 -1
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/__init__.py +1 -1
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/common.py +5 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/ssh.py +12 -3
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/PKG-INFO +14 -1
- {chibi_command-2.4.3 → chibi_command-2.4.5}/setup.cfg +1 -1
- {chibi_command-2.4.3 → chibi_command-2.4.5}/setup.py +1 -1
- {chibi_command-2.4.3 → chibi_command-2.4.5}/AUTHORS.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/CONTRIBUTING.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/LICENSE +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/MANIFEST.in +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/README.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/archilinux/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/archilinux/pacman.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/archilinux/yay.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/centos/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/centos/dnf.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/centos/iptable.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/centos/yum.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/db.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/dd.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/dd.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/e2label.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/format.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/lsblk.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/disk/mount.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/echo.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/ffmpeg.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/file.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/image/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/image/convert.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/image/qr.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/lxc/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/lxc/delegate.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/lxc/lxc.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/mpd.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/ifconfig.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/interfaces.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/iwconfig.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/nmap.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/network/nmcli.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/nix/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/nix/locale.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/nix/systemd.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/nix/systemd_run.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/nix/user.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/qr.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/rabbitmq.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/rpm.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/rsync.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/sysctl.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/unittests/__init__.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/wmctrl.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command/xfce4.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/SOURCES.txt +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/dependency_links.txt +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/not-zip-safe +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/requires.txt +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/chibi_command.egg-info/top_level.txt +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/Makefile +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/authors.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/conf.py +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/contributing.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/history.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/index.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/installation.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/make.bat +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/readme.rst +0 -0
- {chibi_command-2.4.3 → chibi_command-2.4.5}/docs/usage.rst +0 -0
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
********************
|
|
6
|
+
2.4.5 ( 2026-03-25 )
|
|
7
|
+
********************
|
|
8
|
+
|
|
9
|
+
* se cambio para que el comando ssh use -t para una pseudo terminal
|
|
10
|
+
|
|
11
|
+
********************
|
|
12
|
+
2.4.4 ( 2026-03-25 )
|
|
13
|
+
********************
|
|
14
|
+
|
|
15
|
+
* se cambio la estructura del comando ssh para poder encdenar multiples comandos con su
|
|
16
|
+
* se agrego el comando cd
|
|
17
|
+
|
|
5
18
|
********************
|
|
6
19
|
2.4.3 ( 2026-03-25 )
|
|
7
20
|
********************
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.5
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,19 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.4.5 ( 2026-03-25 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* se cambio para que el comando ssh use -t para una pseudo terminal
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.4.4 ( 2026-03-25 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* se cambio la estructura del comando ssh para poder encdenar multiples comandos con su
|
|
110
|
+
* se agrego el comando cd
|
|
111
|
+
|
|
99
112
|
********************
|
|
100
113
|
2.4.3 ( 2026-03-25 )
|
|
101
114
|
********************
|
|
@@ -8,12 +8,16 @@ class Ssh( Command ):
|
|
|
8
8
|
command = 'ssh'
|
|
9
9
|
captive = False
|
|
10
10
|
|
|
11
|
-
def __init__(
|
|
11
|
+
def __init__(
|
|
12
|
+
self, user, host, pseudo_terminal=True,
|
|
13
|
+
identity_file=None, *args, **kw ):
|
|
12
14
|
self._user = user
|
|
13
15
|
self._host = host
|
|
14
16
|
self._sudo_command = None
|
|
15
17
|
super().__init__( self._build_connection(), *args, **kw )
|
|
16
18
|
self.identity_file = identity_file
|
|
19
|
+
if pseudo_terminal:
|
|
20
|
+
self.insert_args( '-t' )
|
|
17
21
|
|
|
18
22
|
@property
|
|
19
23
|
def sudo_command( self ):
|
|
@@ -63,7 +67,7 @@ class Ssh( Command ):
|
|
|
63
67
|
if tmp_sudo == "su":
|
|
64
68
|
tmp_sudo = 'su -c "'
|
|
65
69
|
preview_commands = map(
|
|
66
|
-
lambda x: f'{
|
|
70
|
+
lambda x: f'{x.preview()}',
|
|
67
71
|
self.commands )
|
|
68
72
|
else:
|
|
69
73
|
preview_commands = map(
|
|
@@ -75,7 +79,10 @@ class Ssh( Command ):
|
|
|
75
79
|
splitter = '&&'
|
|
76
80
|
else:
|
|
77
81
|
splitter = ';'
|
|
78
|
-
|
|
82
|
+
if self.sudo_command == 'su':
|
|
83
|
+
result = [ 'su -c "' ]
|
|
84
|
+
else:
|
|
85
|
+
result = []
|
|
79
86
|
for command in preview_commands:
|
|
80
87
|
result.append( command )
|
|
81
88
|
result.append( splitter )
|
|
@@ -83,6 +90,8 @@ class Ssh( Command ):
|
|
|
83
90
|
# y no se como hacerlo de otra forma
|
|
84
91
|
if result:
|
|
85
92
|
result.pop()
|
|
93
|
+
if self.sudo_command == 'su':
|
|
94
|
+
result.append( '"' )
|
|
86
95
|
return result
|
|
87
96
|
|
|
88
97
|
def _build_connection( self ):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.5
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,19 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.4.5 ( 2026-03-25 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* se cambio para que el comando ssh use -t para una pseudo terminal
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.4.4 ( 2026-03-25 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* se cambio la estructura del comando ssh para poder encdenar multiples comandos con su
|
|
110
|
+
* se agrego el comando cd
|
|
111
|
+
|
|
99
112
|
********************
|
|
100
113
|
2.4.3 ( 2026-03-25 )
|
|
101
114
|
********************
|
|
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
|