dekshell 0.2.38__py3-none-any.whl → 0.2.39__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.
@@ -5,6 +5,7 @@ import time
5
5
  import tempfile
6
6
  import getpass
7
7
  import operator
8
+ import base64
8
9
  from importlib import import_module
9
10
  from functools import reduce
10
11
  from itertools import chain
@@ -30,7 +31,8 @@ from dektools.str import shlex_split, shlex_quote, str_split, split_table_line
30
31
  from dektools.format import format_duration
31
32
  from dektools.shell import shell_wrapper, is_user_admin, shell_timeout, shell_retry
32
33
  from dektools.match import GeneralMatcher, glob2re, glob_compile, glob_match
33
- from dektools.cmd.git import git_clean_dir, git_apply, git_parse_modules, git_fetch_min, git_list_remotes, git_head
34
+ from dektools.cmd.git import git_parse_modules, git_clean_dir, git_fetch_min, git_remove_tag, git_latest_tag, \
35
+ git_list_remotes, git_apply, git_head
34
36
  from ...utils.beep import sound_notify
35
37
  from ...utils.cmd import pack_context_full
36
38
  from ..markers.base.core import MarkerBase, get_inner_vars
@@ -339,6 +341,10 @@ default_methods = {
339
341
  'rc4': rc4,
340
342
  'rc4file': rc4_file,
341
343
 
344
+ 'e64': lambda sb, encode='utf-8': base64.b64encode(sb if isinstance(sb, str) else sb.encode(encode)).decode(
345
+ 'latin-1'),
346
+ 'd64': lambda sb: base64.b64decode(sb),
347
+
342
348
  'beep': lambda x=True: sound_notify(x),
343
349
 
344
350
  'invoke': lambda __placeholder__filepath, *args, **kwargs: InvokeMarker.execute_file(
@@ -366,11 +372,15 @@ default_methods = {
366
372
  },
367
373
 
368
374
  'git': {
369
- 'apply': git_apply,
370
- 'remotes': git_list_remotes,
371
375
  'modules': git_parse_modules,
372
- 'fetch': git_fetch_min,
373
376
  'clean': git_clean_dir,
377
+ 'fetch': git_fetch_min,
378
+ 'tag': {
379
+ 'rm': git_remove_tag,
380
+ 'latest': git_latest_tag
381
+ },
382
+ 'remotes': git_list_remotes,
383
+ 'apply': git_apply,
374
384
  'head': git_head,
375
385
  }
376
386
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.38
3
+ Version: 0.2.39
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
6
  Requires-Python: >=3.8
@@ -1,12 +1,12 @@
1
- dekshell-0.2.38.dist-info/METADATA,sha256=doO8XiIfbnZcJEN4zy0MCPROVULDEh--kSILkDE7NWo,573
2
- dekshell-0.2.38.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- dekshell-0.2.38.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.39.dist-info/METADATA,sha256=06C1Wjdomjd9jSYisw4o6eXQJhYPOdk7UhyxOzzFwBY,573
2
+ dekshell-0.2.39.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ dekshell-0.2.39.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
4
4
  dekshell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  dekshell/click/__entry__.py,sha256=CMuxUzXoEe4TcHFZwv-MNFwHnu1HSZCDpXFpqQ814uM,42
6
6
  dekshell/click/__init__.py,sha256=r-AHdO9CEEVvTN20-8Jozr6Zh8XSv_BnktYRwrlhtrE,2046
7
7
  dekshell/core/__init__.py,sha256=isDEKwk1odLdvTQNCILCtVNBuXp1uFVPz_uTDNihkVU,5547
8
8
  dekshell/core/contexts/__init__.py,sha256=ynsfv37azOKfI2UKd0iPl2M6iBW-k5cb1BqSLOWuJpI,482
9
- dekshell/core/contexts/methods.py,sha256=B8lfdJQ7hIk-InoXtI0g1JQJ6tWkzggapHFRz1D1b3c,10674
9
+ dekshell/core/contexts/methods.py,sha256=_w4BX-d6-HRlcs_ag75mypGSrgDTWTBRXBKSEzdf9rg,11003
10
10
  dekshell/core/contexts/properties.py,sha256=yilnRe2I6FTIui4kXUBCWvH2ymvpEfc_13on8pAZwnY,3456
11
11
  dekshell/core/markers/__init__.py,sha256=yRQazZ1dxMltFao_RQnDnawSnQcjN_4B930MjJhaZ40,1968
12
12
  dekshell/core/markers/base/__init__.py,sha256=CsbNYGQ2Od3XdekR9RFMJ7mo9Roj-LlXS62SY50fiAY,16826
@@ -37,4 +37,4 @@ dekshell/utils/cmd.py,sha256=K9FbXgHcGFchHA58xI0_t4YK4yb8XkWbxsNoztYRx3Y,518
37
37
  dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
38
38
  dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
39
39
  dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
40
- dekshell-0.2.38.dist-info/RECORD,,
40
+ dekshell-0.2.39.dist-info/RECORD,,