treex-cli 0.1.3__tar.gz → 0.1.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: treex-cli
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: List directory contents as a tree with file metadata
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -39,10 +39,10 @@ Dynamic: license-file
39
39
  `treex` is a command-line utility that recursively scans a directory and
40
40
  displays its contents as a tree along with file metadata.
41
41
 
42
- - File names show human-readable sizes
43
- - Text files show line counts
44
- - Binary and unreadable files show their type
45
- - Modification timestamps are optional
42
+ - Displays human-readable file sizes
43
+ - Shows line counts for text files
44
+ - Identifies binary and unreadable files by type
45
+ - Optionally displays modification timestamps
46
46
  - Respects `.gitignore` rules when Git is installed
47
47
 
48
48
  ----
@@ -14,10 +14,10 @@
14
14
  `treex` is a command-line utility that recursively scans a directory and
15
15
  displays its contents as a tree along with file metadata.
16
16
 
17
- - File names show human-readable sizes
18
- - Text files show line counts
19
- - Binary and unreadable files show their type
20
- - Modification timestamps are optional
17
+ - Displays human-readable file sizes
18
+ - Shows line counts for text files
19
+ - Identifies binary and unreadable files by type
20
+ - Optionally displays modification timestamps
21
21
  - Respects `.gitignore` rules when Git is installed
22
22
 
23
23
  ----
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "treex-cli"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description="List directory contents as a tree with file metadata"
9
9
  license = "MIT"
10
10
  license-files = ["LICENSE"]
@@ -179,6 +179,14 @@ def _collect_tree(
179
179
  rows.append((tree_name, (size_text, info, timestamp)))
180
180
 
181
181
 
182
+ def print_summary(stats):
183
+ print(
184
+ f"{stats['directories']:,} directories • "
185
+ f"{stats['files']:,} files • "
186
+ f"{_format_size(stats['total_size'])}"
187
+ )
188
+
189
+
182
190
  def print_tree(
183
191
  directory,
184
192
  prefix="",
@@ -263,11 +271,7 @@ def main():
263
271
  )
264
272
  if show_tree:
265
273
  print()
266
- print(
267
- f"{stats['directories']} directories • "
268
- f"{stats['files']} files • "
269
- f"{_format_size(stats['total_size'])}"
270
- )
274
+ print_summary(stats)
271
275
  return 0
272
276
 
273
277
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: treex-cli
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: List directory contents as a tree with file metadata
5
5
  Author: Corey Goldberg
6
6
  Maintainer: Corey Goldberg
@@ -39,10 +39,10 @@ Dynamic: license-file
39
39
  `treex` is a command-line utility that recursively scans a directory and
40
40
  displays its contents as a tree along with file metadata.
41
41
 
42
- - File names show human-readable sizes
43
- - Text files show line counts
44
- - Binary and unreadable files show their type
45
- - Modification timestamps are optional
42
+ - Displays human-readable file sizes
43
+ - Shows line counts for text files
44
+ - Identifies binary and unreadable files by type
45
+ - Optionally displays modification timestamps
46
46
  - Respects `.gitignore` rules when Git is installed
47
47
 
48
48
  ----
File without changes
File without changes