omni-catalyst 1.0.0

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.
Files changed (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1137 -0
  3. package/core/bin/core +85 -0
  4. package/core/bin/omni +21 -0
  5. package/core/cli/commands/--version.sh +8 -0
  6. package/core/cli/commands/brain.sh +1549 -0
  7. package/core/cli/commands/doctor.sh +834 -0
  8. package/core/cli/commands/env.sh +226 -0
  9. package/core/cli/commands/init.sh +1266 -0
  10. package/core/cli/commands/install.sh +759 -0
  11. package/core/cli/commands/list.sh +397 -0
  12. package/core/cli/commands/open.sh +71 -0
  13. package/core/cli/commands/pg.sh +761 -0
  14. package/core/cli/commands/reinstall.sh +694 -0
  15. package/core/cli/commands/show.sh +90 -0
  16. package/core/cli/commands/uninstall.sh +700 -0
  17. package/core/cli/commands/update.sh +754 -0
  18. package/core/cli/commands/voice.sh +170 -0
  19. package/core/cli/core.sh +82 -0
  20. package/core/cli/omni.sh +634 -0
  21. package/core/modules/ai.sh +152 -0
  22. package/core/modules/auto.sh +90 -0
  23. package/core/modules/db.sh +94 -0
  24. package/core/modules/deploy.sh +50 -0
  25. package/core/modules/dev.sh +126 -0
  26. package/core/modules/editor.sh +101 -0
  27. package/core/modules/lang.sh +100 -0
  28. package/core/modules/npm.sh +122 -0
  29. package/core/modules/shell.sh +312 -0
  30. package/core/modules/ui.sh +115 -0
  31. package/core/tools/ai/all.sh +63 -0
  32. package/core/tools/ai/antigravity-cli/README.md +45 -0
  33. package/core/tools/ai/antigravity-cli/bin/agy +28 -0
  34. package/core/tools/ai/antigravity-cli/helper/agy_helper.c +39 -0
  35. package/core/tools/ai/antigravity-cli/install.sh +469 -0
  36. package/core/tools/ai/claude-code/README.md +45 -0
  37. package/core/tools/ai/claude-code/bin/claude +29 -0
  38. package/core/tools/ai/claude-code/helper/claude_helper.c +42 -0
  39. package/core/tools/ai/claude-code/install.sh +278 -0
  40. package/core/tools/ai/codegraph/README.md +43 -0
  41. package/core/tools/ai/codegraph/bin/codegraph +3 -0
  42. package/core/tools/ai/codegraph/install.sh +149 -0
  43. package/core/tools/ai/codex/README.md +44 -0
  44. package/core/tools/ai/codex/install.sh +104 -0
  45. package/core/tools/ai/command-code/README.md +62 -0
  46. package/core/tools/ai/command-code/install.sh +136 -0
  47. package/core/tools/ai/engram/README.md +44 -0
  48. package/core/tools/ai/engram/install.sh +127 -0
  49. package/core/tools/ai/freebuff/README.md +52 -0
  50. package/core/tools/ai/freebuff/bin/freebuff +28 -0
  51. package/core/tools/ai/freebuff/helper/freebuff_helper.c +47 -0
  52. package/core/tools/ai/freebuff/install.sh +301 -0
  53. package/core/tools/ai/gemini-cli/README.md +46 -0
  54. package/core/tools/ai/gemini-cli/install.sh +111 -0
  55. package/core/tools/ai/gentle-ai/README.md +42 -0
  56. package/core/tools/ai/gentle-ai/install.sh +253 -0
  57. package/core/tools/ai/gentle-ai/termux-patches.go +256 -0
  58. package/core/tools/ai/gga/README.md +49 -0
  59. package/core/tools/ai/gga/install.sh +134 -0
  60. package/core/tools/ai/hermes-agent/README.md +50 -0
  61. package/core/tools/ai/hermes-agent/install.sh +80 -0
  62. package/core/tools/ai/heygen/README.md +24 -0
  63. package/core/tools/ai/heygen/install.sh +126 -0
  64. package/core/tools/ai/kilocode-cli/README.md +45 -0
  65. package/core/tools/ai/kilocode-cli/bin/kilocode +21 -0
  66. package/core/tools/ai/kilocode-cli/helper/kilocode_helper.c +47 -0
  67. package/core/tools/ai/kilocode-cli/install.sh +179 -0
  68. package/core/tools/ai/kimchi-code/README.md +8 -0
  69. package/core/tools/ai/kimchi-code/install.sh +120 -0
  70. package/core/tools/ai/kimi-code/README.md +45 -0
  71. package/core/tools/ai/kimi-code/install.sh +111 -0
  72. package/core/tools/ai/kiro-cli/README.md +23 -0
  73. package/core/tools/ai/kiro-cli/install.sh +127 -0
  74. package/core/tools/ai/mimocode/README.md +43 -0
  75. package/core/tools/ai/mimocode/bin/mimo +28 -0
  76. package/core/tools/ai/mimocode/helper/mimocode_helper.c +47 -0
  77. package/core/tools/ai/mimocode/install.sh +287 -0
  78. package/core/tools/ai/minimax-cli/README.md +45 -0
  79. package/core/tools/ai/minimax-cli/install.sh +111 -0
  80. package/core/tools/ai/mistral-vibe/README.md +46 -0
  81. package/core/tools/ai/mistral-vibe/install.sh +119 -0
  82. package/core/tools/ai/odysseus/README.md +35 -0
  83. package/core/tools/ai/odysseus/install.sh +163 -0
  84. package/core/tools/ai/ollama/README.md +44 -0
  85. package/core/tools/ai/ollama/install.sh +78 -0
  86. package/core/tools/ai/openclaude/README.md +46 -0
  87. package/core/tools/ai/openclaude/install.sh +110 -0
  88. package/core/tools/ai/openclaw/README.md +47 -0
  89. package/core/tools/ai/openclaw/install.sh +112 -0
  90. package/core/tools/ai/opencode/README.md +51 -0
  91. package/core/tools/ai/opencode/bin/opencode +28 -0
  92. package/core/tools/ai/opencode/helper/opencode_helper.c +57 -0
  93. package/core/tools/ai/opencode/install.sh +290 -0
  94. package/core/tools/ai/pi/README.md +46 -0
  95. package/core/tools/ai/pi/install.sh +104 -0
  96. package/core/tools/ai/qwen-code/README.md +45 -0
  97. package/core/tools/ai/qwen-code/install.sh +111 -0
  98. package/core/tools/ai/seedance/README.md +22 -0
  99. package/core/tools/ai/seedance/install.sh +134 -0
  100. package/core/tools/ai/veo3/README.md +36 -0
  101. package/core/tools/ai/veo3/install.sh +151 -0
  102. package/core/tools/auto/all.sh +57 -0
  103. package/core/tools/auto/n8n/README.md +47 -0
  104. package/core/tools/auto/n8n/install.sh +102 -0
  105. package/core/tools/db/all.sh +60 -0
  106. package/core/tools/db/mariadb/README.md +43 -0
  107. package/core/tools/db/mariadb/install.sh +65 -0
  108. package/core/tools/db/mongodb/README.md +42 -0
  109. package/core/tools/db/mongodb/install.sh +73 -0
  110. package/core/tools/db/postgresql/README.md +45 -0
  111. package/core/tools/db/postgresql/install.sh +65 -0
  112. package/core/tools/db/sqlite/README.md +44 -0
  113. package/core/tools/db/sqlite/install.sh +65 -0
  114. package/core/tools/deploy/all.sh +39 -0
  115. package/core/tools/deploy/netlify/install.sh +41 -0
  116. package/core/tools/deploy/railway/install.sh +47 -0
  117. package/core/tools/deploy/vercel/install.sh +43 -0
  118. package/core/tools/dev/all.sh +75 -0
  119. package/core/tools/dev/bat/README.md +44 -0
  120. package/core/tools/dev/bat/install.sh +82 -0
  121. package/core/tools/dev/bc/README.md +44 -0
  122. package/core/tools/dev/bc/install.sh +82 -0
  123. package/core/tools/dev/cloudflared/README.md +43 -0
  124. package/core/tools/dev/cloudflared/install.sh +82 -0
  125. package/core/tools/dev/curl/README.md +43 -0
  126. package/core/tools/dev/curl/install.sh +82 -0
  127. package/core/tools/dev/fzf/README.md +44 -0
  128. package/core/tools/dev/fzf/install.sh +82 -0
  129. package/core/tools/dev/gh/README.md +43 -0
  130. package/core/tools/dev/gh/install.sh +82 -0
  131. package/core/tools/dev/html2text/README.md +44 -0
  132. package/core/tools/dev/html2text/install.sh +82 -0
  133. package/core/tools/dev/imagemagick/README.md +44 -0
  134. package/core/tools/dev/imagemagick/install.sh +82 -0
  135. package/core/tools/dev/jq/README.md +44 -0
  136. package/core/tools/dev/jq/install.sh +82 -0
  137. package/core/tools/dev/lsd/README.md +44 -0
  138. package/core/tools/dev/lsd/install.sh +82 -0
  139. package/core/tools/dev/make/README.md +44 -0
  140. package/core/tools/dev/make/install.sh +82 -0
  141. package/core/tools/dev/ncurses/README.md +42 -0
  142. package/core/tools/dev/ncurses/install.sh +82 -0
  143. package/core/tools/dev/proot/README.md +43 -0
  144. package/core/tools/dev/proot/install.sh +82 -0
  145. package/core/tools/dev/shfmt/README.md +44 -0
  146. package/core/tools/dev/shfmt/install.sh +82 -0
  147. package/core/tools/dev/tmate/README.md +44 -0
  148. package/core/tools/dev/tmate/install.sh +82 -0
  149. package/core/tools/dev/translate/README.md +44 -0
  150. package/core/tools/dev/translate/install.sh +82 -0
  151. package/core/tools/dev/tree/README.md +44 -0
  152. package/core/tools/dev/tree/install.sh +82 -0
  153. package/core/tools/dev/udocker/README.md +44 -0
  154. package/core/tools/dev/udocker/install.sh +82 -0
  155. package/core/tools/dev/wget/README.md +44 -0
  156. package/core/tools/dev/wget/install.sh +82 -0
  157. package/core/tools/editor/all.sh +58 -0
  158. package/core/tools/editor/neovim/README.md +43 -0
  159. package/core/tools/editor/neovim/install.sh +66 -0
  160. package/core/tools/editor/nvchad/README.md +45 -0
  161. package/core/tools/editor/nvchad/install.sh +110 -0
  162. package/core/tools/lang/all.sh +63 -0
  163. package/core/tools/lang/clang/README.md +43 -0
  164. package/core/tools/lang/clang/install.sh +79 -0
  165. package/core/tools/lang/golang/README.md +43 -0
  166. package/core/tools/lang/golang/install.sh +79 -0
  167. package/core/tools/lang/nodejs/README.md +43 -0
  168. package/core/tools/lang/nodejs/install.sh +79 -0
  169. package/core/tools/lang/perl/README.md +43 -0
  170. package/core/tools/lang/perl/install.sh +79 -0
  171. package/core/tools/lang/php/README.md +43 -0
  172. package/core/tools/lang/php/install.sh +79 -0
  173. package/core/tools/lang/python/README.md +43 -0
  174. package/core/tools/lang/python/install.sh +79 -0
  175. package/core/tools/lang/rust/README.md +43 -0
  176. package/core/tools/lang/rust/install.sh +79 -0
  177. package/core/tools/npm/all.sh +67 -0
  178. package/core/tools/npm/live-server/README.md +43 -0
  179. package/core/tools/npm/live-server/install.sh +95 -0
  180. package/core/tools/npm/localtunnel/README.md +43 -0
  181. package/core/tools/npm/localtunnel/install.sh +111 -0
  182. package/core/tools/npm/markserv/README.md +43 -0
  183. package/core/tools/npm/markserv/install.sh +94 -0
  184. package/core/tools/npm/ncu/README.md +43 -0
  185. package/core/tools/npm/ncu/install.sh +94 -0
  186. package/core/tools/npm/nestjs/README.md +43 -0
  187. package/core/tools/npm/nestjs/install.sh +94 -0
  188. package/core/tools/npm/ngrok/README.md +44 -0
  189. package/core/tools/npm/ngrok/install.sh +94 -0
  190. package/core/tools/npm/prettier/README.md +43 -0
  191. package/core/tools/npm/prettier/install.sh +94 -0
  192. package/core/tools/npm/psqlformat/README.md +43 -0
  193. package/core/tools/npm/psqlformat/install.sh +94 -0
  194. package/core/tools/npm/turbopack/README.md +8 -0
  195. package/core/tools/npm/turbopack/install.sh +41 -0
  196. package/core/tools/npm/typescript/README.md +43 -0
  197. package/core/tools/npm/typescript/install.sh +94 -0
  198. package/core/tools/npm/vercel/README.md +43 -0
  199. package/core/tools/npm/vercel/install.sh +94 -0
  200. package/core/tools/shell/all.sh +67 -0
  201. package/core/tools/shell/better-npm/README.md +43 -0
  202. package/core/tools/shell/better-npm/install.sh +85 -0
  203. package/core/tools/shell/fzf-tab/README.md +44 -0
  204. package/core/tools/shell/fzf-tab/install.sh +85 -0
  205. package/core/tools/shell/history-substring/README.md +43 -0
  206. package/core/tools/shell/history-substring/install.sh +85 -0
  207. package/core/tools/shell/powerlevel10k/README.md +43 -0
  208. package/core/tools/shell/powerlevel10k/install.sh +85 -0
  209. package/core/tools/shell/you-should-use/README.md +43 -0
  210. package/core/tools/shell/you-should-use/install.sh +85 -0
  211. package/core/tools/shell/zsh-autopair/README.md +44 -0
  212. package/core/tools/shell/zsh-autopair/install.sh +85 -0
  213. package/core/tools/shell/zsh-autosuggestions/README.md +43 -0
  214. package/core/tools/shell/zsh-autosuggestions/install.sh +85 -0
  215. package/core/tools/shell/zsh-completions/README.md +43 -0
  216. package/core/tools/shell/zsh-completions/install.sh +85 -0
  217. package/core/tools/shell/zsh-defer/README.md +43 -0
  218. package/core/tools/shell/zsh-defer/install.sh +85 -0
  219. package/core/tools/shell/zsh-syntax-highlighting/README.md +43 -0
  220. package/core/tools/shell/zsh-syntax-highlighting/install.sh +72 -0
  221. package/core/tools/ui/all.sh +61 -0
  222. package/core/tools/ui/banner/README.md +42 -0
  223. package/core/tools/ui/banner/install.sh +151 -0
  224. package/core/tools/ui/cursor/README.md +42 -0
  225. package/core/tools/ui/cursor/install.sh +58 -0
  226. package/core/tools/ui/extra-keys/README.md +43 -0
  227. package/core/tools/ui/extra-keys/install.sh +62 -0
  228. package/core/tools/ui/font/README.md +43 -0
  229. package/core/tools/ui/font/install.sh +63 -0
  230. package/core/utils/banner.sh +519 -0
  231. package/core/utils/bootstrap.sh +25 -0
  232. package/core/utils/colors.sh +31 -0
  233. package/core/utils/dialogrc +30 -0
  234. package/core/utils/env.sh +53 -0
  235. package/core/utils/log.sh +598 -0
  236. package/install.sh +272 -0
  237. package/package.json +43 -0
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_clang_pkg() {
8
+ loading "Installing C/C++ (Clang)" _install_clang_pkg_impl
9
+ }
10
+
11
+ _install_clang_pkg_impl() {
12
+ if ! pkg install clang -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install C/C++ (Clang)"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_clang() {
20
+ if command -v clang &>/dev/null; then
21
+ log_info "C/C++ (Clang) is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing C/C++ (Clang)..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_clang_pkg || return 1
28
+ log_success "C/C++ (Clang) installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_clang_pkg() {
33
+ loading "Uninstalling C/C++ (Clang)" _uninstall_clang_pkg_impl
34
+ }
35
+
36
+ _uninstall_clang_pkg_impl() {
37
+ if ! pkg uninstall clang -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall C/C++ (clang)"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_clang() {
45
+ if ! command -v clang &>/dev/null; then
46
+ log_info "C/C++ (Clang) is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling C/C++ (Clang)..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_clang_pkg || return 1
52
+ log_success "C/C++ (clang) uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_clang_pkg() {
57
+ loading "Updating C/C++ (Clang)" _update_clang_pkg_impl
58
+ }
59
+
60
+ _update_clang_pkg_impl() {
61
+ if ! pkg upgrade clang -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update C/C++ (clang)"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_clang() {
69
+ log_info "Updating C/C++ (Clang)..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_clang_pkg || return 1
72
+ log_success "C/C++ (clang) updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_clang() {
77
+ uninstall_clang
78
+ install_clang
79
+ }
@@ -0,0 +1,43 @@
1
+ # Go (Golang)
2
+
3
+ Statically typed, compiled programming language by Google
4
+
5
+ **Package:** golang
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://go.dev
9
+ **Type:** Language (pkg)
10
+ **License:** BSD 3-Clause
11
+
12
+ ## Description
13
+
14
+ Go is a statically typed, compiled programming language designed at Google. It is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency, making it excellent for building scalable and reliable software.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install lang --golang
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall lang --golang
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update lang --golang
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Commands: `go`, `gofmt`
41
+ - Includes Go toolchain and standard library
42
+ - Use `go install` for installing Go-based tools
43
+
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_golang_pkg() {
8
+ loading "Installing Go (Golang)" _install_golang_pkg_impl
9
+ }
10
+
11
+ _install_golang_pkg_impl() {
12
+ if ! pkg install golang -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install Go (Golang)"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_golang() {
20
+ if command -v go &>/dev/null; then
21
+ log_info "Go (Golang) is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing Go (Golang)..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_golang_pkg || return 1
28
+ log_success "Go (Golang) installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_golang_pkg() {
33
+ loading "Uninstalling Go (Golang)" _uninstall_golang_pkg_impl
34
+ }
35
+
36
+ _uninstall_golang_pkg_impl() {
37
+ if ! pkg uninstall golang -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall Go (golang)"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_golang() {
45
+ if ! command -v go &>/dev/null; then
46
+ log_info "Go (Golang) is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling Go (Golang)..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_golang_pkg || return 1
52
+ log_success "Go (golang) uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_golang_pkg() {
57
+ loading "Updating Go (Golang)" _update_golang_pkg_impl
58
+ }
59
+
60
+ _update_golang_pkg_impl() {
61
+ if ! pkg upgrade golang -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update Go (golang)"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_golang() {
69
+ log_info "Updating Go (Golang)..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_golang_pkg || return 1
72
+ log_success "Go (golang) updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_golang() {
77
+ uninstall_golang
78
+ install_golang
79
+ }
@@ -0,0 +1,43 @@
1
+ # Node.js LTS
2
+
3
+ JavaScript runtime environment (Long Term Support version)
4
+
5
+ **Package:** nodejs-lts
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://nodejs.org
9
+ **Type:** Language runtime (pkg)
10
+ **License:** MIT
11
+
12
+ ## Description
13
+
14
+ Node.js is an open-source, cross-platform JavaScript runtime environment that executes JavaScript code outside a web browser. The LTS (Long Term Support) version provides a stable and reliable platform for building server-side applications, command-line tools, and more.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install lang --nodejs
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall lang --nodejs
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update lang --nodejs
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Commands: `node`, `npm`, `npx`
41
+ - Global npm packages can be installed via the `npm` module
42
+ - LTS version provides extended support and stability
43
+
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_nodejs_pkg() {
8
+ loading "Installing Node.js LTS" _install_nodejs_pkg_impl
9
+ }
10
+
11
+ _install_nodejs_pkg_impl() {
12
+ if ! pkg install nodejs-lts -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install Node.js LTS"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_nodejs() {
20
+ if command -v node &>/dev/null; then
21
+ log_info "Node.js LTS is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing Node.js LTS..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_nodejs_pkg || return 1
28
+ log_success "Node.js LTS installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_nodejs_pkg() {
33
+ loading "Uninstalling Node.js LTS" _uninstall_nodejs_pkg_impl
34
+ }
35
+
36
+ _uninstall_nodejs_pkg_impl() {
37
+ if ! pkg uninstall nodejs-lts -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall Node.js LTS"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_nodejs() {
45
+ if ! command -v node &>/dev/null; then
46
+ log_info "Node.js LTS is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling Node.js LTS..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_nodejs_pkg || return 1
52
+ log_success "Node.js LTS uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_nodejs_pkg() {
57
+ loading "Updating Node.js LTS" _update_nodejs_pkg_impl
58
+ }
59
+
60
+ _update_nodejs_pkg_impl() {
61
+ if ! pkg upgrade nodejs-lts -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update Node.js LTS"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_nodejs() {
69
+ log_info "Updating Node.js LTS..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_nodejs_pkg || return 1
72
+ log_success "Node.js LTS updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_nodejs() {
77
+ uninstall_nodejs
78
+ install_nodejs
79
+ }
@@ -0,0 +1,43 @@
1
+ # Perl
2
+
3
+ Highly capable, feature-rich programming language
4
+
5
+ **Package:** perl
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.perl.org
9
+ **Type:** Language (pkg)
10
+ **License:** Artistic License 2.0 / GPL
11
+
12
+ ## Description
13
+
14
+ Perl is a highly capable, feature-rich programming language with over 30 years of development. It is especially powerful for text processing, system administration, web development, and network programming.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install lang --perl
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall lang --perl
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update lang --perl
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Command: `perl`
41
+ - CPAN package manager included
42
+ - Extensive library of modules available via CPAN
43
+
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_perl_pkg() {
8
+ loading "Installing Perl" _install_perl_pkg_impl
9
+ }
10
+
11
+ _install_perl_pkg_impl() {
12
+ if ! pkg install perl -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install Perl"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_perl() {
20
+ if command -v perl &>/dev/null; then
21
+ log_info "Perl is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing Perl..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_perl_pkg || return 1
28
+ log_success "Perl installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_perl_pkg() {
33
+ loading "Uninstalling Perl" _uninstall_perl_pkg_impl
34
+ }
35
+
36
+ _uninstall_perl_pkg_impl() {
37
+ if ! pkg uninstall perl -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall Perl"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_perl() {
45
+ if ! command -v perl &>/dev/null; then
46
+ log_info "Perl is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling Perl..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_perl_pkg || return 1
52
+ log_success "Perl uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_perl_pkg() {
57
+ loading "Updating Perl" _update_perl_pkg_impl
58
+ }
59
+
60
+ _update_perl_pkg_impl() {
61
+ if ! pkg upgrade perl -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update Perl"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_perl() {
69
+ log_info "Updating Perl..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_perl_pkg || return 1
72
+ log_success "Perl updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_perl() {
77
+ uninstall_perl
78
+ install_perl
79
+ }
@@ -0,0 +1,43 @@
1
+ # PHP
2
+
3
+ Popular general-purpose scripting language for web development
4
+
5
+ **Package:** php
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.php.net
9
+ **Type:** Language (pkg)
10
+ **License:** PHP License 3.01
11
+
12
+ ## Description
13
+
14
+ PHP is a popular general-purpose scripting language that is especially suited to web development. It can be embedded into HTML and is widely used for building dynamic websites, web applications, and APIs.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install lang --php
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall lang --php
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update lang --php
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Command: `php`
41
+ - Includes built-in web server: `php -S`
42
+ - Composer can be installed separately for dependency management
43
+
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_php_pkg() {
8
+ loading "Installing PHP" _install_php_pkg_impl
9
+ }
10
+
11
+ _install_php_pkg_impl() {
12
+ if ! pkg install php -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install PHP"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_php() {
20
+ if command -v php &>/dev/null; then
21
+ log_info "PHP is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing PHP..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_php_pkg || return 1
28
+ log_success "PHP installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_php_pkg() {
33
+ loading "Uninstalling PHP" _uninstall_php_pkg_impl
34
+ }
35
+
36
+ _uninstall_php_pkg_impl() {
37
+ if ! pkg uninstall php -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall PHP"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_php() {
45
+ if ! command -v php &>/dev/null; then
46
+ log_info "PHP is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling PHP..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_php_pkg || return 1
52
+ log_success "PHP uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_php_pkg() {
57
+ loading "Updating PHP" _update_php_pkg_impl
58
+ }
59
+
60
+ _update_php_pkg_impl() {
61
+ if ! pkg upgrade php -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update PHP"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_php() {
69
+ log_info "Updating PHP..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_php_pkg || return 1
72
+ log_success "PHP updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_php() {
77
+ uninstall_php
78
+ install_php
79
+ }
@@ -0,0 +1,43 @@
1
+ # Python
2
+
3
+ High-level, general-purpose programming language
4
+
5
+ **Package:** python
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.python.org
9
+ **Type:** Language (pkg)
10
+ **License:** Python Software Foundation License
11
+
12
+ ## Description
13
+
14
+ Python is a high-level, interpreted programming language known for its readability and versatility. It supports multiple programming paradigms and is widely used in web development, data science, AI/ML, automation, and more.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install lang --python
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall lang --python
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update lang --python
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Commands: `python`, `pip`
41
+ - Python 3 version from Termux repositories
42
+ - Includes pip package manager
43
+
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_lang.log"
6
+
7
+ _install_python_pkg() {
8
+ loading "Installing Python" _install_python_pkg_impl
9
+ }
10
+
11
+ _install_python_pkg_impl() {
12
+ if ! pkg install python -y &>>"$LOG_FILE"; then
13
+ log_error "Failed to install Python"
14
+ return 1
15
+ fi
16
+ return 0
17
+ }
18
+
19
+ install_python() {
20
+ if command -v python &>/dev/null; then
21
+ log_info "Python is already installed"
22
+ return 2
23
+ fi
24
+ log_info "Installing Python..."
25
+
26
+ mkdir -p "$(dirname "$LOG_FILE")"
27
+ _install_python_pkg || return 1
28
+ log_success "Python installed"
29
+ return 0
30
+ }
31
+
32
+ _uninstall_python_pkg() {
33
+ loading "Uninstalling Python" _uninstall_python_pkg_impl
34
+ }
35
+
36
+ _uninstall_python_pkg_impl() {
37
+ if ! pkg uninstall python -y &>>"$LOG_FILE"; then
38
+ log_error "Failed to uninstall Python"
39
+ return 1
40
+ fi
41
+ return 0
42
+ }
43
+
44
+ uninstall_python() {
45
+ if ! command -v python &>/dev/null; then
46
+ log_info "Python is not installed"
47
+ return 2
48
+ fi
49
+ log_info "Uninstalling Python..."
50
+ mkdir -p "$(dirname "$LOG_FILE")"
51
+ _uninstall_python_pkg || return 1
52
+ log_success "Python uninstalled"
53
+ return 0
54
+ }
55
+
56
+ _update_python_pkg() {
57
+ loading "Updating Python" _update_python_pkg_impl
58
+ }
59
+
60
+ _update_python_pkg_impl() {
61
+ if ! pkg upgrade python -y &>>"$LOG_FILE"; then
62
+ log_error "Failed to update Python"
63
+ return 1
64
+ fi
65
+ return 0
66
+ }
67
+
68
+ update_python() {
69
+ log_info "Updating Python..."
70
+ mkdir -p "$(dirname "$LOG_FILE")"
71
+ _update_python_pkg || return 1
72
+ log_success "Python updated"
73
+ return 0
74
+ }
75
+
76
+ reinstall_python() {
77
+ uninstall_python
78
+ install_python
79
+ }