dekshell 0.2.5__py3-none-any.whl → 0.2.7__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.
@@ -7,7 +7,7 @@ from functools import reduce
7
7
  from itertools import chain
8
8
  from pathlib import Path
9
9
  from dektools.file import sure_dir, write_file, read_text, remove_path, sure_parent_dir, normal_path, \
10
- format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, \
10
+ format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty,\
11
11
  split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
12
12
  where, where_list, which, which_list
13
13
  from dektools.hash import hash_file
@@ -22,7 +22,7 @@ from dektools.time import now
22
22
  from dektools.str import shlex_split, shlex_quote
23
23
  from dektools.shell import shell_wrapper, is_user_admin
24
24
  from dektools.match import GeneralMatcher, glob2re, glob_compile, glob_match
25
- from dektools.git import git_clean_dir, git_apply, git_parse_modules, git_fetch_min, git_list_remotes
25
+ from dektools.cmd.git import git_clean_dir, git_apply, git_parse_modules, git_fetch_min, git_list_remotes, git_head
26
26
  from ...utils.beep import sound_notify
27
27
  from ..markers.base.core import MarkerBase, get_inner_vars
28
28
  from ..markers.invoke import InvokeMarker, GotoMarker
@@ -156,6 +156,7 @@ default_methods = {
156
156
  **path_common_methods,
157
157
  'tree': _tree,
158
158
  'exists': os.path.exists,
159
+ 'empty': path_is_empty,
159
160
  'parent': _parent_dir,
160
161
  'abs': normal_path,
161
162
  'rel': os.path.relpath,
@@ -242,5 +243,6 @@ default_methods = {
242
243
  'modules': git_parse_modules,
243
244
  'fetch': git_fetch_min,
244
245
  'clean': git_clean_dir,
246
+ 'head': git_head,
245
247
  }
246
248
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.5
3
+ Version: 0.2.7
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.5.dist-info/METADATA,sha256=ouSjx0hcMkNMPo1d6jwyzqeNc0pa6f7jeLAK7k0MuB0,572
2
- dekshell-0.2.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- dekshell-0.2.5.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.7.dist-info/METADATA,sha256=6KZynQkCledNS27CLnsBIOlxnCBf2QDi9JX8HvTSz7M,572
2
+ dekshell-0.2.7.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ dekshell-0.2.7.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=rFzB_exzPQaIcbbms5PdHAU3NGdl2MBaYbq9v7g7BOI,1870
7
7
  dekshell/core/__init__.py,sha256=ZAJtMPFCVClHCPkoP5rmTq1vVLLMQRa8MP-QJXLBgNM,5337
8
8
  dekshell/core/contexts/__init__.py,sha256=ynsfv37azOKfI2UKd0iPl2M6iBW-k5cb1BqSLOWuJpI,482
9
- dekshell/core/contexts/methods.py,sha256=2wIXEnqNUram0T_gMtrmuWZd1HqfJnMO7G73wTZ33kQ,7078
9
+ dekshell/core/contexts/methods.py,sha256=EXIGyrywib0ZBfxXkxFVUGVpPHAusVb-x3grDq06AFM,7164
10
10
  dekshell/core/contexts/properties.py,sha256=6rEQjExvAmZ69OfhPLLIQwnynRzAjX0nIbcBuZ5yuzM,2314
11
11
  dekshell/core/markers/__init__.py,sha256=O5N5rURhTW0sZvnVVvtTX_w53zHYjb6KfcUShY46YmM,1762
12
12
  dekshell/core/markers/base/__init__.py,sha256=AQYr7H0F06izu5jhu8EgLYJ2ERzJh0eS38h9gtl6OZs,13067
@@ -36,4 +36,4 @@ dekshell/utils/cmd.py,sha256=akykpgPCovXpvavKF28G-eNM3mOZ4TY0LlSWGozDp34,1204
36
36
  dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
37
37
  dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
38
38
  dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
39
- dekshell-0.2.5.dist-info/RECORD,,
39
+ dekshell-0.2.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.3)
2
+ Generator: pdm-backend (2.4.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any