bluer-options 5.157.1__py3-none-any.whl → 5.159.1__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.
@@ -85,6 +85,13 @@ function bluer_ai_list_resize() {
85
85
  "${@:3}"
86
86
  }
87
87
 
88
+ function bluer_ai_list_reverse() {
89
+ python3 -m bluer_options.list \
90
+ reverse \
91
+ --items "$1" \
92
+ "${@:2}"
93
+ }
94
+
88
95
  function bluer_ai_list_sort() {
89
96
  python3 -m bluer_options.list \
90
97
  sort \
bluer_options/__init__.py CHANGED
@@ -6,7 +6,7 @@ ICON = "🌀"
6
6
 
7
7
  DESCRIPTION = f"{ICON} Options for Bash."
8
8
 
9
- VERSION = "5.157.1"
9
+ VERSION = "5.159.1"
10
10
 
11
11
  REPO_NAME = "bluer-options"
12
12
 
@@ -7,7 +7,9 @@ from bluer_options.logger.config import logger
7
7
 
8
8
  NAME = module.name(__file__, NAME)
9
9
 
10
- LIST_OF_TASKS = "filter|in|intersect|item|len|log|next|nonempty|prev|resize|sort"
10
+ LIST_OF_TASKS = (
11
+ "filter|in|intersect|item|len|log|next|nonempty|prev|resize|reverse|sort"
12
+ )
11
13
 
12
14
  parser = argparse.ArgumentParser(NAME)
13
15
  parser.add_argument(
@@ -146,6 +148,8 @@ elif args.task == "prev":
146
148
  print(prev_item)
147
149
  elif args.task == "resize":
148
150
  print(delim.join(list_of_items[: args.count] if args.count >= 0 else list_of_items))
151
+ elif args.task == "reverse":
152
+ print(delim.join(list_of_items[::-1]))
149
153
  elif args.task == "sort":
150
154
  if args.unique:
151
155
  list_of_items = list(set(list_of_items))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_options
3
- Version: 5.157.1
3
+ Version: 5.159.1
4
4
  Summary: 🌀 Options for Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-options
6
6
  Author: Arash Abadpour (Kamangir)
@@ -1,4 +1,4 @@
1
- bluer_options/__init__.py,sha256=lqOE6p_DB-K0zvYqAz0GeqlYOY5Zf3OPKuaiomHrjzs,288
1
+ bluer_options/__init__.py,sha256=SdXpVkgp4fvV7FWketrahyXnNhcuPCGYcIfqWlgLvIA,288
2
2
  bluer_options/__main__.py,sha256=-6ce9W1uXkle4YtEYlSUMWxSmsur3dRDA4_MvNNhEVg,236
3
3
  bluer_options/config.env,sha256=2AG3xuWiMqaNmlCNDWQOJ_AssKk7KXhn0XDIkHWNQ2Q,30
4
4
  bluer_options/elapsed_timer.py,sha256=46e-g-bjC7J4hGOGKD12R90ficXzFYn84xlLX6l34I8,545
@@ -15,7 +15,7 @@ bluer_options/.bash/eval.sh,sha256=JnataqjT1-ROVvKjFJRud2b-jyLQqbHg6qOgmzQqYHc,8
15
15
  bluer_options/.bash/generic_task.sh,sha256=o0W_XQqV9SfmhDiy3jegx6P9XQsLKWny7l931TlIICQ,1205
16
16
  bluer_options/.bash/help.sh,sha256=n0JnRWmqigfbJfyxBQ4WZaOsCdLL-ctN2U5C0Kuv0JQ,591
17
17
  bluer_options/.bash/install.sh,sha256=lUF5Pfs7ND0UJTjopGU_P5VTspKHL3eaB3jj9VqWAt0,594
18
- bluer_options/.bash/list.sh,sha256=sS91K7Q9aykEj7ocRbJrCm0qnJTNMNTRjmyrFgsV9LA,1747
18
+ bluer_options/.bash/list.sh,sha256=CumfbaPqEc4Pkh_n4Hex7QZ_ub7JloU0HoVxsRiat3o,1879
19
19
  bluer_options/.bash/logging.sh,sha256=pxfTELOanA7OOJeZnS8mMsF4OmlbF_2w47IpdZoynUA,1533
20
20
  bluer_options/.bash/open.sh,sha256=WjQn-4iNLuAsxfmhu-nUQcFCYhM4iaLRV17uqg7Ahps,614
21
21
  bluer_options/.bash/options.sh,sha256=2geExu7e_bHYBqajTdUbvssO53FNMC5G2FDGDI-hd-M,587
@@ -50,7 +50,7 @@ bluer_options/host/__init__.py,sha256=Cy_zamSTzv7F2sktvO6_gdK21eeps4FI7EIaltXU7U
50
50
  bluer_options/host/__main__.py,sha256=A0Z-sAG9lVpQx9ULzroAINPw2sZyzouUvwrYU_8QtSs,775
51
51
  bluer_options/host/functions.py,sha256=SZnEaPp1dvQuWi8K_skwI3wQXr7PKtwUBI1qJ2RqoIM,4036
52
52
  bluer_options/list/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
- bluer_options/list/__main__.py,sha256=kGIp9rgOIAAveRI0b1iXfg2eMows80C2kJzjCVh1poQ,3558
53
+ bluer_options/list/__main__.py,sha256=er69iqdooU9Hb-7Vl6CAUMgQmZApSq_BTDnLT4xCjWI,3646
54
54
  bluer_options/logger/__init__.py,sha256=RBE9wNeOlBcbQFCYjJEbTMvCmY-aqKdZ-uNRJYTBzP4,137
55
55
  bluer_options/logger/config.py,sha256=4wzy55DpBcTBC7d8krhwd1ZKeBfrdZ6koc3lup14EvI,3198
56
56
  bluer_options/options/__init__.py,sha256=q0Ymi9oCBwgN0g7NVeYh4XgiICOtH8W8Wuaa52NH-rw,50
@@ -63,8 +63,8 @@ bluer_options/string/functions.py,sha256=cvP4_b0CUk3xXWLTpqy17NOw8ldiiUx3GLpggap
63
63
  bluer_options/terminal/__init__.py,sha256=kyNhbC5NVCuqrUhbbTeAOTW1ZO7MRRbi0RtXGBFKtJc,73
64
64
  bluer_options/terminal/__main__.py,sha256=3o465bp44c2f1KHDn4j664hpbvu8wKOwQ2c1OPoa6Xc,902
65
65
  bluer_options/terminal/functions.py,sha256=A23uHLeU4JIctmecOFk_KhIfOeHu-WMjnSzBj2KiF3U,1947
66
- bluer_options-5.157.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
67
- bluer_options-5.157.1.dist-info/METADATA,sha256=mCvvvNY4K3063e6ZFhwjvXOttMSmC0gH4s8VZ9WbY-8,4951
68
- bluer_options-5.157.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
- bluer_options-5.157.1.dist-info/top_level.txt,sha256=yw9slt8n3R7IiYmf83OtHtB8Z-EgP9UwyQTk1EGiAJU,14
70
- bluer_options-5.157.1.dist-info/RECORD,,
66
+ bluer_options-5.159.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
67
+ bluer_options-5.159.1.dist-info/METADATA,sha256=HLPAenU4cfCZDD7hZbEHC2gVCqnR6rjPj-jNsiD5lKU,4951
68
+ bluer_options-5.159.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
+ bluer_options-5.159.1.dist-info/top_level.txt,sha256=yw9slt8n3R7IiYmf83OtHtB8Z-EgP9UwyQTk1EGiAJU,14
70
+ bluer_options-5.159.1.dist-info/RECORD,,