filelisting 1.2.1__tar.gz → 1.2.2__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.1
2
2
  Name: filelisting
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: List files under given paths.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -55,6 +55,18 @@ To install ``filelisting``, you can use ``pip``. Open your terminal and run:
55
55
 
56
56
  pip install filelisting
57
57
 
58
+ CLI
59
+ ---
60
+
61
+ The project provides a CLI. For more information apply the ``--help`` flag.
62
+
63
+ Features
64
+ --------
65
+
66
+ * ``main`` constitutes the CLI
67
+ * ``file_generator`` takes an arbitrary number of paths and iterates over the references files
68
+ * ``file_list`` returns a list version of ``file_generator``
69
+
58
70
  License
59
71
  -------
60
72
 
@@ -16,6 +16,18 @@ To install ``filelisting``, you can use ``pip``. Open your terminal and run:
16
16
 
17
17
  pip install filelisting
18
18
 
19
+ CLI
20
+ ---
21
+
22
+ The project provides a CLI. For more information apply the ``--help`` flag.
23
+
24
+ Features
25
+ --------
26
+
27
+ * ``main`` constitutes the CLI
28
+ * ``file_generator`` takes an arbitrary number of paths and iterates over the references files
29
+ * ``file_list`` returns a list version of ``file_generator``
30
+
19
31
  License
20
32
  -------
21
33
 
@@ -23,7 +23,7 @@ keywords = []
23
23
  name = "filelisting"
24
24
  readme = "README.rst"
25
25
  requires-python = ">=3.11"
26
- version = "1.2.1"
26
+ version = "1.2.2"
27
27
 
28
28
  [project.license]
29
29
  file = "LICENSE.txt"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: filelisting
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: List files under given paths.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -55,6 +55,18 @@ To install ``filelisting``, you can use ``pip``. Open your terminal and run:
55
55
 
56
56
  pip install filelisting
57
57
 
58
+ CLI
59
+ ---
60
+
61
+ The project provides a CLI. For more information apply the ``--help`` flag.
62
+
63
+ Features
64
+ --------
65
+
66
+ * ``main`` constitutes the CLI
67
+ * ``file_generator`` takes an arbitrary number of paths and iterates over the references files
68
+ * ``file_list`` returns a list version of ``file_generator``
69
+
58
70
  License
59
71
  -------
60
72
 
File without changes
File without changes
File without changes
@@ -6,10 +6,6 @@ import getoptify as _getoptify
6
6
  _CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
7
7
 
8
8
 
9
- def file_list(*paths):
10
- return list(file_generator(*paths))
11
-
12
-
13
9
  def file_generator(*paths):
14
10
  for raw_path in paths:
15
11
  path = raw_path
@@ -24,6 +20,10 @@ def file_generator(*paths):
24
20
  yield file
25
21
 
26
22
 
23
+ def file_list(*paths):
24
+ return list(file_generator(*paths))
25
+
26
+
27
27
  @_getoptify.command(shortopts="hV")
28
28
  @_click.command(context_settings=_CONTEXT_SETTINGS)
29
29
  @_click.version_option(None, "-V", "--version")