dekshell 0.2.38__py3-none-any.whl → 0.2.40__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.
- dekshell/core/contexts/methods.py +14 -4
- dekshell/core/markers/function.py +1 -1
- dekshell/core/markers/invoke.py +1 -1
- {dekshell-0.2.38.dist-info → dekshell-0.2.40.dist-info}/METADATA +1 -1
- {dekshell-0.2.38.dist-info → dekshell-0.2.40.dist-info}/RECORD +7 -7
- {dekshell-0.2.38.dist-info → dekshell-0.2.40.dist-info}/WHEEL +0 -0
- {dekshell-0.2.38.dist-info → dekshell-0.2.40.dist-info}/entry_points.txt +0 -0
|
@@ -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
|
|
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
|
}
|
|
@@ -35,7 +35,7 @@ class Function:
|
|
|
35
35
|
self.body = body
|
|
36
36
|
|
|
37
37
|
def __call__(self, *args, **kwargs):
|
|
38
|
-
context, marker_set = get_inner_vars('__inner_context__', '__inner_marker_set__')
|
|
38
|
+
context, marker_set = get_inner_vars('__inner_context__', '__inner_marker_set__', full=True)
|
|
39
39
|
context = context.derive().update_variables(self.pack_variables(context, args, kwargs))
|
|
40
40
|
return QuitContext.real(marker_set.node_cls.execute_nodes(context, marker_set, self.body[:]))
|
|
41
41
|
|
dekshell/core/markers/invoke.py
CHANGED
|
@@ -17,7 +17,7 @@ class MarkerInvokerBase(MarkerBase):
|
|
|
17
17
|
@classmethod
|
|
18
18
|
def execute_file(cls, marker_set, filepath, args, kwargs):
|
|
19
19
|
if marker_set is None:
|
|
20
|
-
marker_set = get_inner_vars('__inner_marker_set__')
|
|
20
|
+
marker_set = get_inner_vars('__inner_marker_set__', full=True)
|
|
21
21
|
return cls._run_file(marker_set, normal_path(filepath), pack_context_full(args, kwargs))
|
|
22
22
|
|
|
23
23
|
@classmethod
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
dekshell-0.2.
|
|
2
|
-
dekshell-0.2.
|
|
3
|
-
dekshell-0.2.
|
|
1
|
+
dekshell-0.2.40.dist-info/METADATA,sha256=e3PnsS8qX_d_ecrZZoR2bXosz0n0njf8f2ea3wDNpSg,573
|
|
2
|
+
dekshell-0.2.40.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dekshell-0.2.40.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=
|
|
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
|
|
@@ -20,10 +20,10 @@ dekshell/core/markers/empty.py,sha256=pWKsHlrp6uXWU6blqOs0IgN_3kYm1OmDQiKGPERabA
|
|
|
20
20
|
dekshell/core/markers/env.py,sha256=6ZtiMNdKFbGR_DBjG6C7A8L_lJsiymN5Y5AbnTzyMrE,1158
|
|
21
21
|
dekshell/core/markers/exec.py,sha256=4_7FRUEgbAtt0_9r8TmOar_Zi6VXxe6E7p3RL6sVgQg,2705
|
|
22
22
|
dekshell/core/markers/for_.py,sha256=uNOEwyDsjffttEBtUYasdlj7FP_sGnQzWuTV5d5esHY,2142
|
|
23
|
-
dekshell/core/markers/function.py,sha256=
|
|
23
|
+
dekshell/core/markers/function.py,sha256=rLi8Lc9nf7ex3xdj8-VdJkgC1qXpr5JVMndH1YlH4mM,3815
|
|
24
24
|
dekshell/core/markers/if_.py,sha256=bBG1fDCZd5alE5FSm0QhgHl6ZJn5awiqZAXnPnO-thc,1112
|
|
25
25
|
dekshell/core/markers/input.py,sha256=O0yvGtt1uhbpE2gOReLseAmshVpZYMW3zV-OabZt0lw,1182
|
|
26
|
-
dekshell/core/markers/invoke.py,sha256=
|
|
26
|
+
dekshell/core/markers/invoke.py,sha256=ReE-i-ji2Bl90M8xLi8-kZrc-lL5mRUmjbGPoRcIoPw,1452
|
|
27
27
|
dekshell/core/markers/pip_.py,sha256=mxXa_oqcrk4Qz-HvhlkMoirsl-SbM9Fz610leNqP1o0,832
|
|
28
28
|
dekshell/core/markers/redirect.py,sha256=cpTQaXFAuSwprsrhUNP0xTGDmu06HGNQVcwKsETEjas,1981
|
|
29
29
|
dekshell/core/markers/shell.py,sha256=43BDAAzMdmgZmemkW5buh_w4LL1GDGw-s9fNZo6vhag,1929
|
|
@@ -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.
|
|
40
|
+
dekshell-0.2.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|