dekshell 0.2.48__py3-none-any.whl → 0.2.50__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.
@@ -30,12 +30,11 @@ from dektools.ps.process import process_print_all, process_print_detail, process
30
30
  from dektools.time import now
31
31
  from dektools.str import shlex_split, shlex_quote, str_split, split_table_line
32
32
  from dektools.format import format_duration
33
- from dektools.shell import shell_wrapper, is_user_admin, shell_timeout, shell_retry
33
+ from dektools.shell import shell_wrapper, is_user_admin, shell_timeout, shell_retry, shell_command
34
34
  from dektools.match import GeneralMatcher, glob2re, glob_compile, glob_match
35
35
  from dektools.cmd.git import git_parse_modules, git_clean_dir, git_fetch_min, git_remove_tag, git_latest_tag, \
36
36
  git_list_remotes, git_apply, git_head
37
37
  from ...utils.beep import sound_notify
38
- from ...utils.cmd import pack_context_full
39
38
  from ..markers.base.core import MarkerBase, get_inner_vars
40
39
  from ..markers.invoke import InvokeMarker, GotoMarker, ImportMarker
41
40
  from ..redirect import search_bin_by_path_tree
@@ -239,7 +238,7 @@ path_common_methods = {
239
238
  'where': where,
240
239
  'which': lambda *x, **y: which(*x, **y) or '',
241
240
  'those': those,
242
- 'pybin': lambda x, p=None: search_bin_by_path_tree(p or os.getcwd(), x, False),
241
+ 'pybin': lambda x=None, p=None: search_bin_by_path_tree(p or os.getcwd(), x, False),
243
242
  'pym': _pym,
244
243
  'pymd': _pymd,
245
244
  'pyms': _pyms,
@@ -268,6 +267,7 @@ default_methods = {
268
267
  'timeout': shell_timeout,
269
268
  'retry': shell_retry,
270
269
  'run': shell_wrapper,
270
+ 'cmd': shell_command,
271
271
  'env': {
272
272
  None: lambda k, v: _env_update({k: v}),
273
273
  'update': _env_update,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.48
3
+ Version: 0.2.50
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.48.dist-info/METADATA,sha256=CI-hSRcsLKqRIsl_ifEZ9qy_AyWo9zUL0jJsiGOUVIg,573
2
- dekshell-0.2.48.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- dekshell-0.2.48.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.50.dist-info/METADATA,sha256=9I6LaQvFZd9OC9cIILICWMyQkiKeoQcM9axv3G8f6fI,573
2
+ dekshell-0.2.50.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ dekshell-0.2.50.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=fHCK0vfBzLGPN0AxMq_xyA_30ldkiqg-L2ATd7p6woo,11892
9
+ dekshell/core/contexts/methods.py,sha256=tv8wKK114zQlXiJrU9eS0NHyvh6qDbY_Bx0GCVklexM,11899
10
10
  dekshell/core/contexts/properties.py,sha256=TQonN3T_K2cB2uakq_DVVB13B-IFwoM6t2ZkL_OMekw,3365
11
11
  dekshell/core/markers/__init__.py,sha256=mK6OiZMWmUTrkAL0Bc1XqRTSb-NNhBgpHb7GLivLAlk,2235
12
12
  dekshell/core/markers/base/__init__.py,sha256=0LYnOVNXPBHfRQII00ZGkESTFX82TgHdSaTcHJoebXc,18051
@@ -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.48.dist-info/RECORD,,
40
+ dekshell-0.2.50.dist-info/RECORD,,