bluer-options 5.162.1__tar.gz → 5.166.1__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.

Potentially problematic release.


This version of bluer-options might be problematic. Click here for more details.

Files changed (78) hide show
  1. {bluer_options-5.162.1/bluer_options.egg-info → bluer_options-5.166.1}/PKG-INFO +1 -1
  2. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/open.sh +6 -2
  3. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/__init__.py +1 -1
  4. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/logger/__init__.py +1 -0
  5. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/logger/config.py +22 -8
  6. {bluer_options-5.162.1 → bluer_options-5.166.1/bluer_options.egg-info}/PKG-INFO +1 -1
  7. {bluer_options-5.162.1 → bluer_options-5.166.1}/LICENSE +0 -0
  8. {bluer_options-5.162.1 → bluer_options-5.166.1}/MANIFEST.in +0 -0
  9. {bluer_options-5.162.1 → bluer_options-5.166.1}/README.md +0 -0
  10. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/alias.sh +0 -0
  11. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/assert.sh +0 -0
  12. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/bluer_options.sh +0 -0
  13. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/bool.sh +0 -0
  14. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/browse.sh +0 -0
  15. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/code.sh +0 -0
  16. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/backup.sh +0 -0
  17. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot/cat.sh +0 -0
  18. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot/cp.sh +0 -0
  19. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot/edit.sh +0 -0
  20. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot/load.sh +0 -0
  21. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot/seed.sh +0 -0
  22. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env/dot.sh +0 -0
  23. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/env.sh +0 -0
  24. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/eval.sh +0 -0
  25. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/generic_task.sh +0 -0
  26. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/help.sh +0 -0
  27. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/install.sh +0 -0
  28. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/list.sh +0 -0
  29. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/logging.sh +0 -0
  30. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/options.sh +0 -0
  31. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/pause.sh +0 -0
  32. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/plugins.sh +0 -0
  33. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/pylint.sh +0 -0
  34. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/pytest.sh +0 -0
  35. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/repeat.sh +0 -0
  36. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/seed.sh +0 -0
  37. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/sleep.sh +0 -0
  38. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/source.sh +0 -0
  39. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/string.sh +0 -0
  40. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/terminal.sh +0 -0
  41. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/test.sh +0 -0
  42. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/wait.sh +0 -0
  43. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/.bash/watch.sh +0 -0
  44. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/__main__.py +0 -0
  45. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/assets/example1.sh +0 -0
  46. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/config.env +0 -0
  47. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/elapsed_timer.py +0 -0
  48. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/env/__init__.py +0 -0
  49. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/env/functions.py +0 -0
  50. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/help/__init__.py +0 -0
  51. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/help/__main__.py +0 -0
  52. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/help/functions.py +0 -0
  53. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/help/parsing.py +0 -0
  54. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/host/__init__.py +0 -0
  55. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/host/__main__.py +0 -0
  56. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/host/functions.py +0 -0
  57. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/list/__init__.py +0 -0
  58. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/list/__main__.py +0 -0
  59. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/options/__init__.py +0 -0
  60. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/options/__main__.py +0 -0
  61. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/options/classes.py +0 -0
  62. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/string/__init__.py +0 -0
  63. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/string/__main__.py +0 -0
  64. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/string/constants.py +0 -0
  65. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/string/functions.py +0 -0
  66. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/terminal/__init__.py +0 -0
  67. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/terminal/__main__.py +0 -0
  68. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/terminal/functions.py +0 -0
  69. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/timer.py +0 -0
  70. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options/urls.py +0 -0
  71. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options.egg-info/SOURCES.txt +0 -0
  72. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options.egg-info/dependency_links.txt +0 -0
  73. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options.egg-info/requires.txt +0 -0
  74. {bluer_options-5.162.1 → bluer_options-5.166.1}/bluer_options.egg-info/top_level.txt +0 -0
  75. {bluer_options-5.162.1 → bluer_options-5.166.1}/pyproject.toml +0 -0
  76. {bluer_options-5.162.1 → bluer_options-5.166.1}/requirements.txt +0 -0
  77. {bluer_options-5.162.1 → bluer_options-5.166.1}/setup.cfg +0 -0
  78. {bluer_options-5.162.1 → bluer_options-5.166.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_options
3
- Version: 5.162.1
3
+ Version: 5.166.1
4
4
  Summary: 🌀 Options for Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-options
6
6
  Author: Arash Abadpour (Kamangir)
@@ -19,6 +19,10 @@ function bluer_ai_open() {
19
19
  [[ ! -z "$filename" ]] &&
20
20
  what=$what/$filename
21
21
 
22
- bluer_ai_log "📜 $what"
23
- open "$what"
22
+ if [[ "$abcli_is_github_workflow" == true ]]; then
23
+ bluer_ai_log_warning "@open: $what: skipped."
24
+ else
25
+ bluer_ai_log "📜 $what"
26
+ open "$what"
27
+ fi
24
28
  }
@@ -6,7 +6,7 @@ ICON = "🌀"
6
6
 
7
7
  DESCRIPTION = f"{ICON} Options for Bash."
8
8
 
9
- VERSION = "5.162.1"
9
+ VERSION = "5.166.1"
10
10
 
11
11
  REPO_NAME = "bluer-options"
12
12
 
@@ -4,5 +4,6 @@ from bluer_options.logger.config import (
4
4
  get_logger,
5
5
  log_dict,
6
6
  log_list,
7
+ log_list_as_str,
7
8
  log_long_text,
8
9
  )
@@ -87,6 +87,23 @@ def log_dict(
87
87
  break
88
88
 
89
89
 
90
+ def log_list_as_str(
91
+ title: str,
92
+ list_of_items: list,
93
+ item_name_plural: str = "item(s)",
94
+ max_count: int = 5,
95
+ ) -> str:
96
+ return "{} {} {}: {}".format(
97
+ title,
98
+ len(list_of_items),
99
+ item_name_plural,
100
+ ", ".join(
101
+ list_of_items[:max_count]
102
+ + (["..."] if len(list_of_items) > max_count else [])
103
+ ),
104
+ )
105
+
106
+
90
107
  def log_list(
91
108
  logger: Logger,
92
109
  title: str,
@@ -98,14 +115,11 @@ def log_list(
98
115
  ):
99
116
  if not itemize:
100
117
  logger.info(
101
- "{} {} {}: {}".format(
102
- title,
103
- len(list_of_items),
104
- item_name_plural,
105
- ", ".join(
106
- list_of_items[:max_count]
107
- + (["..."] if len(list_of_items) > max_count else [])
108
- ),
118
+ log_list_as_str(
119
+ title=title,
120
+ list_of_items=list_of_items,
121
+ item_name_plural=item_name_plural,
122
+ max_count=max_count,
109
123
  )
110
124
  )
111
125
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_options
3
- Version: 5.162.1
3
+ Version: 5.166.1
4
4
  Summary: 🌀 Options for Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-options
6
6
  Author: Arash Abadpour (Kamangir)
File without changes