chibi-command 2.5.0__tar.gz → 2.5.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.5.0 → chibi_command-2.5.2}/HISTORY.rst +14 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/PKG-INFO +15 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/__init__.py +1 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/archilinux/pacman.py +23 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/nix/systemd.py +3 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/nix/systemd_run.py +4 -2
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/PKG-INFO +15 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/setup.cfg +1 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/setup.py +1 -1
- {chibi_command-2.5.0 → chibi_command-2.5.2}/AUTHORS.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/CONTRIBUTING.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/LICENSE +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/MANIFEST.in +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/README.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/archilinux/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/archilinux/yay.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/centos/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/centos/dnf.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/centos/iptable.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/centos/yum.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/common.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/db.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/dd.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/dd.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/e2label.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/format.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/lsblk.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/disk/mount.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/echo.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/ffmpeg.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/file.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/image/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/image/convert.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/image/qr.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/lxc/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/lxc/delegate.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/lxc/lxc.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/mpd.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/ifconfig.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/interfaces.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/iwconfig.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/nmap.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/network/nmcli.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/nix/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/nix/locale.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/nix/user.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/qr.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/rabbitmq.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/rpm.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/rsync.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/ssh.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/sysctl.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/unittests/__init__.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/wmctrl.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command/xfce4.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/SOURCES.txt +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/dependency_links.txt +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/not-zip-safe +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/requires.txt +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/chibi_command.egg-info/top_level.txt +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/Makefile +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/authors.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/conf.py +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/contributing.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/history.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/index.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/installation.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/make.bat +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/readme.rst +0 -0
- {chibi_command-2.5.0 → chibi_command-2.5.2}/docs/usage.rst +0 -0
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
4
|
|
|
5
|
+
********************
|
|
6
|
+
2.5.2 ( 2026-06-06 )
|
|
7
|
+
********************
|
|
8
|
+
|
|
9
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
10
|
+
del usuario si no es root
|
|
11
|
+
|
|
12
|
+
********************
|
|
13
|
+
2.5.1 ( 2026-04-28 )
|
|
14
|
+
********************
|
|
15
|
+
|
|
16
|
+
* se agrego a status no_fail para los servicios desabilitados
|
|
17
|
+
* se agrego a pacman print version "Pacman.sync().print_version().run( "paquete" ).result"
|
|
18
|
+
|
|
5
19
|
********************
|
|
6
20
|
2.5.0 ( 2026-04-28 )
|
|
7
21
|
********************
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chibi_command
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.2
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,20 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.5.2 ( 2026-06-06 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
104
|
+
del usuario si no es root
|
|
105
|
+
|
|
106
|
+
********************
|
|
107
|
+
2.5.1 ( 2026-04-28 )
|
|
108
|
+
********************
|
|
109
|
+
|
|
110
|
+
* se agrego a status no_fail para los servicios desabilitados
|
|
111
|
+
* se agrego a pacman print version "Pacman.sync().print_version().run( "paquete" ).result"
|
|
112
|
+
|
|
99
113
|
********************
|
|
100
114
|
2.5.0 ( 2026-04-28 )
|
|
101
115
|
********************
|
|
@@ -27,6 +27,16 @@ class Query_result( Command_result ):
|
|
|
27
27
|
self.result = result
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
class Print_version_result( Command_result ):
|
|
31
|
+
def parse_result( self ):
|
|
32
|
+
if not bool( self ):
|
|
33
|
+
return
|
|
34
|
+
lines = self.result.split( '\n' )
|
|
35
|
+
lines = list( filter( bool, lines ) )
|
|
36
|
+
last = lines[-1]
|
|
37
|
+
self.result = last
|
|
38
|
+
|
|
39
|
+
|
|
30
40
|
class Pacman( Command ):
|
|
31
41
|
command = 'pacman'
|
|
32
42
|
captive = False
|
|
@@ -68,3 +78,16 @@ class Pacman( Command ):
|
|
|
68
78
|
def no_confirm( self ):
|
|
69
79
|
self.add_args( '--noconfirm' )
|
|
70
80
|
return self
|
|
81
|
+
|
|
82
|
+
@Chibi_hybrid
|
|
83
|
+
def print_version( cls ):
|
|
84
|
+
instance = cls( '--print-format', '%v' )
|
|
85
|
+
instance.captive = True
|
|
86
|
+
return instance
|
|
87
|
+
|
|
88
|
+
@print_version.instancemethod
|
|
89
|
+
def print_version( self ):
|
|
90
|
+
self.add_args( '--print-format', '%v' )
|
|
91
|
+
self.captive = True
|
|
92
|
+
self.result_class = Print_version_result
|
|
93
|
+
return self
|
|
@@ -53,8 +53,10 @@ class Systemctl( Command ):
|
|
|
53
53
|
result_class = Journal_status
|
|
54
54
|
|
|
55
55
|
@classmethod
|
|
56
|
-
def status( cls, *services ):
|
|
56
|
+
def status( cls, *services, no_fail=False ):
|
|
57
57
|
result = cls( 'status', *services )
|
|
58
|
+
if no_fail:
|
|
59
|
+
result.raise_on_fail = False
|
|
58
60
|
return result
|
|
59
61
|
|
|
60
62
|
@classmethod
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import itertools
|
|
2
3
|
|
|
3
4
|
from chibi_command import Command
|
|
@@ -28,8 +29,9 @@ class System_run( Command ):
|
|
|
28
29
|
|
|
29
30
|
def build_kw( self, **kw ):
|
|
30
31
|
units = Systemctl.list_units().run()
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
if os.getuid() != 0:
|
|
33
|
+
units_user = Systemctl.list_units( user=True ).run()
|
|
34
|
+
units = itertools.chain( iter( units ), iter( units_user ) )
|
|
33
35
|
exists_unit = (
|
|
34
36
|
x[ 'unit' ].startswith( self.kw[ 'unit' ] ) for x in units )
|
|
35
37
|
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.2
|
|
4
4
|
Summary: run terminal commands
|
|
5
5
|
Home-page: https://github.com/dem4ply/chibi_command
|
|
6
6
|
Author: Dem4ply
|
|
@@ -96,6 +96,20 @@ parchear popen
|
|
|
96
96
|
History
|
|
97
97
|
=======
|
|
98
98
|
|
|
99
|
+
********************
|
|
100
|
+
2.5.2 ( 2026-06-06 )
|
|
101
|
+
********************
|
|
102
|
+
|
|
103
|
+
* al comando de systemd-run se agrego que solo llame la lista de unidades
|
|
104
|
+
del usuario si no es root
|
|
105
|
+
|
|
106
|
+
********************
|
|
107
|
+
2.5.1 ( 2026-04-28 )
|
|
108
|
+
********************
|
|
109
|
+
|
|
110
|
+
* se agrego a status no_fail para los servicios desabilitados
|
|
111
|
+
* se agrego a pacman print version "Pacman.sync().print_version().run( "paquete" ).result"
|
|
112
|
+
|
|
99
113
|
********************
|
|
100
114
|
2.5.0 ( 2026-04-28 )
|
|
101
115
|
********************
|
|
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
|