charmlibs-snap 1.0.0__py3-none-any.whl → 1.0.1__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.
- charmlibs/snap/_snap.py +3 -4
- charmlibs/snap/_version.py +1 -1
- {charmlibs_snap-1.0.0.dist-info → charmlibs_snap-1.0.1.dist-info}/METADATA +2 -2
- charmlibs_snap-1.0.1.dist-info/RECORD +7 -0
- charmlibs_snap-1.0.0.dist-info/RECORD +0 -7
- {charmlibs_snap-1.0.0.dist-info → charmlibs_snap-1.0.1.dist-info}/WHEEL +0 -0
charmlibs/snap/_snap.py
CHANGED
|
@@ -424,13 +424,12 @@ class Snap:
|
|
|
424
424
|
args = ['stop', '--disable'] if disable else ['stop']
|
|
425
425
|
self._snap_daemons(args, services)
|
|
426
426
|
|
|
427
|
-
def logs(self, services: list[str] | None = None, num_lines: int = 10) -> str:
|
|
427
|
+
def logs(self, services: list[str] | None = None, num_lines: int | Literal['all'] = 10) -> str:
|
|
428
428
|
"""Fetch a snap services' logs.
|
|
429
429
|
|
|
430
430
|
Args:
|
|
431
|
-
services
|
|
432
|
-
|
|
433
|
-
num_lines (int): (optional) integer number of log lines to return. Default `10`
|
|
431
|
+
services: individual snap services to show logs from. Includes all by default.
|
|
432
|
+
num_lines: number of log lines to return, or 'all'. Returns 10 by default.
|
|
434
433
|
"""
|
|
435
434
|
args = ['logs', f'-n={num_lines}'] if num_lines else ['logs']
|
|
436
435
|
return self._snap_daemons(args, services).stdout
|
charmlibs/snap/_version.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: charmlibs-snap
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: The charmlibs.snap package.
|
|
5
|
-
Project-URL: Documentation, https://documentation.ubuntu.com/charmlibs
|
|
5
|
+
Project-URL: Documentation, https://documentation.ubuntu.com/charmlibs/reference/charmlibs/snap/
|
|
6
6
|
Project-URL: Repository, https://github.com/canonical/charmlibs
|
|
7
7
|
Project-URL: Issues, https://github.com/canonical/charmlibs/issues
|
|
8
8
|
Project-URL: Changelog, https://github.com/canonical/charmlibs/blob/main/snap/CHANGELOG.md
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
charmlibs/snap/__init__.py,sha256=vAH0YBJ1IpkMZASNF5aFic_rLkAEzXxQ60na41Mb5zM,3125
|
|
2
|
+
charmlibs/snap/_snap.py,sha256=KkbFiXNc2h0CnX0uVOLMqmJRx-b0l4cykTKpuo7LoaU,47437
|
|
3
|
+
charmlibs/snap/_version.py,sha256=y_YEESiHBOIgrnn5EhnwGFOSJgDflrt_1VFnfmx5fwY,597
|
|
4
|
+
charmlibs/snap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
charmlibs_snap-1.0.1.dist-info/METADATA,sha256=k3i68JBy4GTeYUNsVMV6sRv14NgRsHGghxF29r3b_Rg,1101
|
|
6
|
+
charmlibs_snap-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
charmlibs_snap-1.0.1.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
charmlibs/snap/__init__.py,sha256=vAH0YBJ1IpkMZASNF5aFic_rLkAEzXxQ60na41Mb5zM,3125
|
|
2
|
-
charmlibs/snap/_snap.py,sha256=SlxwzQiShEsxWxtwRr28-RXs5ypZs40p8tZ7IvrheR0,47457
|
|
3
|
-
charmlibs/snap/_version.py,sha256=SOabh2HM3GM1fjRvHHGC-IV789Y2DPLYqgl_cRoScto,597
|
|
4
|
-
charmlibs/snap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
charmlibs_snap-1.0.0.dist-info/METADATA,sha256=--nSG0h3HFmEbAwZdEkUSFG7msmJ7D3f-shUowmbRcs,1075
|
|
6
|
-
charmlibs_snap-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
charmlibs_snap-1.0.0.dist-info/RECORD,,
|
|
File without changes
|