chibi-command 2.5.1__tar.gz → 2.5.3__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.5.1 → chibi_command-2.5.3}/HISTORY.rst +13 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/PKG-INFO +14 -1
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/__init__.py +1 -1
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/nix/systemd_run.py +9 -2
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/PKG-INFO +14 -1
- {chibi_command-2.5.1 → chibi_command-2.5.3}/setup.cfg +1 -1
- {chibi_command-2.5.1 → chibi_command-2.5.3}/setup.py +1 -1
- {chibi_command-2.5.1 → chibi_command-2.5.3}/AUTHORS.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/CONTRIBUTING.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/LICENSE +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/MANIFEST.in +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/README.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/archilinux/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/archilinux/pacman.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/archilinux/yay.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/centos/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/centos/dnf.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/centos/iptable.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/centos/yum.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/common.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/db.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/dd.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/dd.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/e2label.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/format.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/lsblk.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/disk/mount.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/echo.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/ffmpeg.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/file.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/image/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/image/convert.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/image/qr.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/lxc/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/lxc/delegate.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/lxc/lxc.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/mpd.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/ifconfig.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/interfaces.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/iwconfig.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/nmap.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/network/nmcli.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/nix/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/nix/locale.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/nix/systemd.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/nix/user.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/qr.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/rabbitmq.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/rpm.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/rsync.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/ssh.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/sysctl.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/unittests/__init__.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/wmctrl.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command/xfce4.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/SOURCES.txt +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/dependency_links.txt +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/not-zip-safe +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/requires.txt +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/chibi_command.egg-info/top_level.txt +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/Makefile +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/authors.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/conf.py +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/contributing.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/history.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/index.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/installation.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/make.bat +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/readme.rst +0 -0
- {chibi_command-2.5.1 → chibi_command-2.5.3}/docs/usage.rst +0 -0
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
********************
|
|
6
|
+
2.5.3 ( 2026-06-06 )
|
|
7
|
+
********************
|
|
8
|
+
|
|
9
|
+
* en el delegado de systemd-run no envia --user cuando es root
|
|
10
|
+
|
|
11
|
+
********************
|
|
12
|
+
2.5.2 ( 2026-06-06 )
|
|
13
|
+
********************
|
|
14
|
+
|
|
15
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
16
|
+
del usuario si no es root
|
|
17
|
+
|
|
5
18
|
********************
|
|
6
19
|
2.5.1 ( 2026-04-28 )
|
|
7
20
|
********************
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.3
|
|
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.5.3 ( 2026-06-06 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* en el delegado de systemd-run no envia --user cuando es root
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.5.2 ( 2026-06-06 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
110
|
+
del usuario si no es root
|
|
111
|
+
|
|
99
112
|
********************
|
|
100
113
|
2.5.1 ( 2026-04-28 )
|
|
101
114
|
********************
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import itertools
|
|
2
3
|
|
|
3
4
|
from chibi_command import Command
|
|
@@ -16,6 +17,11 @@ class System_run( Command ):
|
|
|
16
17
|
kw = { 'unit': 'chibi_command_delegate', 'property': 'Delegate=yes' }
|
|
17
18
|
kw_format = "--{key}={value}"
|
|
18
19
|
|
|
20
|
+
def __init__( self, *args, **kw ):
|
|
21
|
+
if os.getuid() == 0:
|
|
22
|
+
self.args.remove( '--user' )
|
|
23
|
+
super().__init__( *args, **kw )
|
|
24
|
+
|
|
19
25
|
@Chibi_hybrid
|
|
20
26
|
def set_command( cls, command, *args ):
|
|
21
27
|
command = cls( command, *args )
|
|
@@ -28,8 +34,9 @@ class System_run( Command ):
|
|
|
28
34
|
|
|
29
35
|
def build_kw( self, **kw ):
|
|
30
36
|
units = Systemctl.list_units().run()
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
if os.getuid() != 0:
|
|
38
|
+
units_user = Systemctl.list_units( user=True ).run()
|
|
39
|
+
units = itertools.chain( iter( units ), iter( units_user ) )
|
|
33
40
|
exists_unit = (
|
|
34
41
|
x[ 'unit' ].startswith( self.kw[ 'unit' ] ) for x in units )
|
|
35
42
|
if any( exists_unit ):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.3
|
|
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.5.3 ( 2026-06-06 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* en el delegado de systemd-run no envia --user cuando es root
|
|
104
|
+
|
|
105
|
+
********************
|
|
106
|
+
2.5.2 ( 2026-06-06 )
|
|
107
|
+
********************
|
|
108
|
+
|
|
109
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
110
|
+
del usuario si no es root
|
|
111
|
+
|
|
99
112
|
********************
|
|
100
113
|
2.5.1 ( 2026-04-28 )
|
|
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
|
|
File without changes
|