charmlibs-snap 1.0.0.post0__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 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 (list): (optional) list of individual snap services to show logs from
432
- (otherwise all)
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
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = '1.0.0.post0'
15
+ __version__ = '1.0.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: charmlibs-snap
3
- Version: 1.0.0.post0
3
+ Version: 1.0.1
4
4
  Summary: The charmlibs.snap package.
5
5
  Project-URL: Documentation, https://documentation.ubuntu.com/charmlibs/reference/charmlibs/snap/
6
6
  Project-URL: Repository, https://github.com/canonical/charmlibs
@@ -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=ypjzCkYXaR4Jc1dW3wPk6N0bnF3tNKhlj6SM4b5117k,603
4
- charmlibs/snap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- charmlibs_snap-1.0.0.post0.dist-info/METADATA,sha256=vqlrJKMfYwhp5LgqqU-VyhCcoEp6SVnFIFud-g4QWsA,1107
6
- charmlibs_snap-1.0.0.post0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- charmlibs_snap-1.0.0.post0.dist-info/RECORD,,