karnel-termux 0.0.1
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.
- package/LICENSE +21 -0
- package/README.md +454 -0
- package/install.sh +272 -0
- package/karnel/bin/karnel +77 -0
- package/karnel/cli/commands/brain.sh +1553 -0
- package/karnel/cli/commands/cleanup.sh +66 -0
- package/karnel/cli/commands/doctor.sh +1528 -0
- package/karnel/cli/commands/env.sh +233 -0
- package/karnel/cli/commands/help.sh +8 -0
- package/karnel/cli/commands/ia.sh +502 -0
- package/karnel/cli/commands/init.sh +1274 -0
- package/karnel/cli/commands/install.sh +718 -0
- package/karnel/cli/commands/list.sh +399 -0
- package/karnel/cli/commands/open.sh +106 -0
- package/karnel/cli/commands/pg.sh +719 -0
- package/karnel/cli/commands/reinstall.sh +663 -0
- package/karnel/cli/commands/show.sh +90 -0
- package/karnel/cli/commands/start.sh +54 -0
- package/karnel/cli/commands/status.sh +96 -0
- package/karnel/cli/commands/uninstall.sh +668 -0
- package/karnel/cli/commands/update.sh +723 -0
- package/karnel/cli/commands/upgrade.sh +40 -0
- package/karnel/cli/commands/version.sh +3 -0
- package/karnel/cli/commands/voice.sh +230 -0
- package/karnel/cli/karnel.sh +706 -0
- package/karnel/modules/ai.sh +135 -0
- package/karnel/modules/auto.sh +114 -0
- package/karnel/modules/db.sh +132 -0
- package/karnel/modules/deploy.sh +74 -0
- package/karnel/modules/dev.sh +148 -0
- package/karnel/modules/editor.sh +115 -0
- package/karnel/modules/lang.sh +124 -0
- package/karnel/modules/npm.sh +146 -0
- package/karnel/modules/shell.sh +338 -0
- package/karnel/modules/ui.sh +139 -0
- package/karnel/modules/voice.sh +118 -0
- package/karnel/tools/ai/all.sh +209 -0
- package/karnel/tools/ai/antigravity-cli/README.md +45 -0
- package/karnel/tools/ai/antigravity-cli/bin/agy +28 -0
- package/karnel/tools/ai/antigravity-cli/helper/agy_helper.c +39 -0
- package/karnel/tools/ai/antigravity-cli/install.sh +469 -0
- package/karnel/tools/ai/claude-code/README.md +45 -0
- package/karnel/tools/ai/claude-code/bin/claude +29 -0
- package/karnel/tools/ai/claude-code/helper/claude_helper.c +42 -0
- package/karnel/tools/ai/claude-code/install.sh +278 -0
- package/karnel/tools/ai/cline/install.sh +160 -0
- package/karnel/tools/ai/codegraph/README.md +43 -0
- package/karnel/tools/ai/codegraph/bin/codegraph +5 -0
- package/karnel/tools/ai/codegraph/install.sh +160 -0
- package/karnel/tools/ai/codex/README.md +44 -0
- package/karnel/tools/ai/codex/install.sh +104 -0
- package/karnel/tools/ai/command-code/README.md +62 -0
- package/karnel/tools/ai/command-code/install.sh +136 -0
- package/karnel/tools/ai/crush/README.md +17 -0
- package/karnel/tools/ai/crush/install.sh +89 -0
- package/karnel/tools/ai/ctx7/README.md +26 -0
- package/karnel/tools/ai/ctx7/install.sh +61 -0
- package/karnel/tools/ai/engram/README.md +44 -0
- package/karnel/tools/ai/engram/install.sh +127 -0
- package/karnel/tools/ai/freebuff/README.md +52 -0
- package/karnel/tools/ai/freebuff/bin/freebuff +28 -0
- package/karnel/tools/ai/freebuff/helper/freebuff_helper.c +47 -0
- package/karnel/tools/ai/freebuff/install.sh +303 -0
- package/karnel/tools/ai/gemini-cli/README.md +46 -0
- package/karnel/tools/ai/gemini-cli/install.sh +111 -0
- package/karnel/tools/ai/gentle-ai/README.md +42 -0
- package/karnel/tools/ai/gentle-ai/install.sh +253 -0
- package/karnel/tools/ai/gentle-ai/termux-patches.go +256 -0
- package/karnel/tools/ai/gga/README.md +49 -0
- package/karnel/tools/ai/gga/install.sh +134 -0
- package/karnel/tools/ai/hermes-agent/README.md +50 -0
- package/karnel/tools/ai/hermes-agent/install.sh +120 -0
- package/karnel/tools/ai/kilocode-cli/README.md +45 -0
- package/karnel/tools/ai/kilocode-cli/bin/kilocode +21 -0
- package/karnel/tools/ai/kilocode-cli/helper/kilocode_helper.c +47 -0
- package/karnel/tools/ai/kilocode-cli/install.sh +179 -0
- package/karnel/tools/ai/kimchi-code/README.md +53 -0
- package/karnel/tools/ai/kimchi-code/install.sh +221 -0
- package/karnel/tools/ai/kimi-code/README.md +45 -0
- package/karnel/tools/ai/kimi-code/install.sh +111 -0
- package/karnel/tools/ai/kiro/README.md +17 -0
- package/karnel/tools/ai/kiro/install.sh +134 -0
- package/karnel/tools/ai/mimocode/README.md +43 -0
- package/karnel/tools/ai/mimocode/bin/mimo +28 -0
- package/karnel/tools/ai/mimocode/helper/mimocode_helper.c +47 -0
- package/karnel/tools/ai/mimocode/install.sh +287 -0
- package/karnel/tools/ai/minimax-cli/README.md +45 -0
- package/karnel/tools/ai/minimax-cli/install.sh +111 -0
- package/karnel/tools/ai/mistral-vibe/README.md +46 -0
- package/karnel/tools/ai/mistral-vibe/install.sh +119 -0
- package/karnel/tools/ai/odysseus/README.md +35 -0
- package/karnel/tools/ai/odysseus/install.sh +198 -0
- package/karnel/tools/ai/ollama/README.md +44 -0
- package/karnel/tools/ai/ollama/install.sh +78 -0
- package/karnel/tools/ai/omni-route/README.md +111 -0
- package/karnel/tools/ai/omni-route/install.sh +165 -0
- package/karnel/tools/ai/openclaude/README.md +46 -0
- package/karnel/tools/ai/openclaude/install.sh +110 -0
- package/karnel/tools/ai/openclaw/README.md +47 -0
- package/karnel/tools/ai/openclaw/install.sh +112 -0
- package/karnel/tools/ai/opencode/README.md +51 -0
- package/karnel/tools/ai/opencode/bin/opencode +28 -0
- package/karnel/tools/ai/opencode/helper/opencode_helper.c +57 -0
- package/karnel/tools/ai/opencode/install.sh +290 -0
- package/karnel/tools/ai/openspec/README.md +34 -0
- package/karnel/tools/ai/openspec/install.sh +61 -0
- package/karnel/tools/ai/pi/README.md +46 -0
- package/karnel/tools/ai/pi/install.sh +104 -0
- package/karnel/tools/ai/qwen-code/README.md +45 -0
- package/karnel/tools/ai/qwen-code/install.sh +111 -0
- package/karnel/tools/auto/all.sh +57 -0
- package/karnel/tools/auto/n8n/README.md +47 -0
- package/karnel/tools/auto/n8n/install.sh +102 -0
- package/karnel/tools/db/all.sh +61 -0
- package/karnel/tools/db/mariadb/README.md +43 -0
- package/karnel/tools/db/mariadb/install.sh +65 -0
- package/karnel/tools/db/mongodb/README.md +42 -0
- package/karnel/tools/db/mongodb/install.sh +73 -0
- package/karnel/tools/db/postgresql/README.md +45 -0
- package/karnel/tools/db/postgresql/install.sh +65 -0
- package/karnel/tools/db/redis/README.md +46 -0
- package/karnel/tools/db/redis/install.sh +64 -0
- package/karnel/tools/db/sqlite/README.md +44 -0
- package/karnel/tools/db/sqlite/install.sh +65 -0
- package/karnel/tools/deploy/all.sh +43 -0
- package/karnel/tools/deploy/netlify/install.sh +41 -0
- package/karnel/tools/deploy/railway/install.sh +109 -0
- package/karnel/tools/deploy/vercel/install.sh +43 -0
- package/karnel/tools/dev/all.sh +77 -0
- package/karnel/tools/dev/bat/README.md +44 -0
- package/karnel/tools/dev/bat/install.sh +82 -0
- package/karnel/tools/dev/bc/README.md +44 -0
- package/karnel/tools/dev/bc/install.sh +82 -0
- package/karnel/tools/dev/cloudflared/README.md +43 -0
- package/karnel/tools/dev/cloudflared/install.sh +82 -0
- package/karnel/tools/dev/curl/README.md +43 -0
- package/karnel/tools/dev/curl/install.sh +82 -0
- package/karnel/tools/dev/fzf/README.md +44 -0
- package/karnel/tools/dev/fzf/install.sh +82 -0
- package/karnel/tools/dev/gh/README.md +43 -0
- package/karnel/tools/dev/gh/install.sh +82 -0
- package/karnel/tools/dev/html2text/README.md +44 -0
- package/karnel/tools/dev/html2text/install.sh +82 -0
- package/karnel/tools/dev/imagemagick/README.md +44 -0
- package/karnel/tools/dev/imagemagick/install.sh +82 -0
- package/karnel/tools/dev/jq/README.md +44 -0
- package/karnel/tools/dev/jq/install.sh +82 -0
- package/karnel/tools/dev/lsd/README.md +44 -0
- package/karnel/tools/dev/lsd/install.sh +82 -0
- package/karnel/tools/dev/make/README.md +44 -0
- package/karnel/tools/dev/make/install.sh +82 -0
- package/karnel/tools/dev/ncurses/README.md +42 -0
- package/karnel/tools/dev/ncurses/install.sh +82 -0
- package/karnel/tools/dev/openssh/README.md +43 -0
- package/karnel/tools/dev/openssh/install.sh +75 -0
- package/karnel/tools/dev/proot/README.md +43 -0
- package/karnel/tools/dev/proot/install.sh +82 -0
- package/karnel/tools/dev/shfmt/README.md +44 -0
- package/karnel/tools/dev/shfmt/install.sh +82 -0
- package/karnel/tools/dev/tmate/README.md +44 -0
- package/karnel/tools/dev/tmate/install.sh +82 -0
- package/karnel/tools/dev/tmux/README.md +43 -0
- package/karnel/tools/dev/tmux/install.sh +75 -0
- package/karnel/tools/dev/translate/README.md +44 -0
- package/karnel/tools/dev/translate/install.sh +82 -0
- package/karnel/tools/dev/tree/README.md +44 -0
- package/karnel/tools/dev/tree/install.sh +82 -0
- package/karnel/tools/dev/udocker/README.md +44 -0
- package/karnel/tools/dev/udocker/install.sh +82 -0
- package/karnel/tools/dev/wget/README.md +44 -0
- package/karnel/tools/dev/wget/install.sh +82 -0
- package/karnel/tools/editor/all.sh +59 -0
- package/karnel/tools/editor/code-server/README.md +42 -0
- package/karnel/tools/editor/code-server/install.sh +74 -0
- package/karnel/tools/editor/neovim/README.md +43 -0
- package/karnel/tools/editor/neovim/install.sh +64 -0
- package/karnel/tools/editor/nvchad/README.md +45 -0
- package/karnel/tools/editor/nvchad/install.sh +105 -0
- package/karnel/tools/lang/all.sh +63 -0
- package/karnel/tools/lang/clang/README.md +43 -0
- package/karnel/tools/lang/clang/install.sh +79 -0
- package/karnel/tools/lang/golang/README.md +43 -0
- package/karnel/tools/lang/golang/install.sh +79 -0
- package/karnel/tools/lang/nodejs/README.md +43 -0
- package/karnel/tools/lang/nodejs/install.sh +79 -0
- package/karnel/tools/lang/perl/README.md +43 -0
- package/karnel/tools/lang/perl/install.sh +79 -0
- package/karnel/tools/lang/php/README.md +43 -0
- package/karnel/tools/lang/php/install.sh +79 -0
- package/karnel/tools/lang/python/README.md +43 -0
- package/karnel/tools/lang/python/install.sh +79 -0
- package/karnel/tools/lang/rust/README.md +43 -0
- package/karnel/tools/lang/rust/install.sh +79 -0
- package/karnel/tools/npm/all.sh +90 -0
- package/karnel/tools/npm/live-server/README.md +43 -0
- package/karnel/tools/npm/live-server/install.sh +96 -0
- package/karnel/tools/npm/localtunnel/README.md +43 -0
- package/karnel/tools/npm/localtunnel/install.sh +112 -0
- package/karnel/tools/npm/markserv/README.md +43 -0
- package/karnel/tools/npm/markserv/install.sh +95 -0
- package/karnel/tools/npm/ncu/README.md +43 -0
- package/karnel/tools/npm/ncu/install.sh +95 -0
- package/karnel/tools/npm/nestjs/README.md +43 -0
- package/karnel/tools/npm/nestjs/install.sh +95 -0
- package/karnel/tools/npm/ngrok/README.md +44 -0
- package/karnel/tools/npm/ngrok/install.sh +95 -0
- package/karnel/tools/npm/prettier/README.md +43 -0
- package/karnel/tools/npm/prettier/install.sh +95 -0
- package/karnel/tools/npm/psqlformat/README.md +43 -0
- package/karnel/tools/npm/psqlformat/install.sh +95 -0
- package/karnel/tools/npm/turbopack/README.md +8 -0
- package/karnel/tools/npm/turbopack/install.sh +42 -0
- package/karnel/tools/npm/typescript/README.md +43 -0
- package/karnel/tools/npm/typescript/install.sh +95 -0
- package/karnel/tools/npm/vercel/README.md +43 -0
- package/karnel/tools/npm/vercel/install.sh +95 -0
- package/karnel/tools/shell/all.sh +67 -0
- package/karnel/tools/shell/better-npm/README.md +43 -0
- package/karnel/tools/shell/better-npm/install.sh +85 -0
- package/karnel/tools/shell/fzf-tab/README.md +44 -0
- package/karnel/tools/shell/fzf-tab/install.sh +85 -0
- package/karnel/tools/shell/history-substring/README.md +43 -0
- package/karnel/tools/shell/history-substring/install.sh +85 -0
- package/karnel/tools/shell/powerlevel10k/README.md +43 -0
- package/karnel/tools/shell/powerlevel10k/install.sh +85 -0
- package/karnel/tools/shell/you-should-use/README.md +43 -0
- package/karnel/tools/shell/you-should-use/install.sh +85 -0
- package/karnel/tools/shell/zsh-autopair/README.md +44 -0
- package/karnel/tools/shell/zsh-autopair/install.sh +85 -0
- package/karnel/tools/shell/zsh-autosuggestions/README.md +43 -0
- package/karnel/tools/shell/zsh-autosuggestions/install.sh +85 -0
- package/karnel/tools/shell/zsh-completions/README.md +43 -0
- package/karnel/tools/shell/zsh-completions/install.sh +85 -0
- package/karnel/tools/shell/zsh-defer/README.md +43 -0
- package/karnel/tools/shell/zsh-defer/install.sh +85 -0
- package/karnel/tools/shell/zsh-syntax-highlighting/README.md +43 -0
- package/karnel/tools/shell/zsh-syntax-highlighting/install.sh +72 -0
- package/karnel/tools/ui/all.sh +61 -0
- package/karnel/tools/ui/banner/README.md +42 -0
- package/karnel/tools/ui/banner/install.sh +160 -0
- package/karnel/tools/ui/cursor/README.md +42 -0
- package/karnel/tools/ui/cursor/install.sh +58 -0
- package/karnel/tools/ui/extra-keys/README.md +43 -0
- package/karnel/tools/ui/extra-keys/install.sh +62 -0
- package/karnel/tools/ui/font/README.md +43 -0
- package/karnel/tools/ui/font/install.sh +63 -0
- package/karnel/tools/voice/all.sh +27 -0
- package/karnel/tools/voice/install.sh +10 -0
- package/karnel/tools/voice/uninstall.sh +8 -0
- package/karnel/utils/banner.sh +492 -0
- package/karnel/utils/bootstrap.sh +25 -0
- package/karnel/utils/colors.sh +33 -0
- package/karnel/utils/dialogrc +30 -0
- package/karnel/utils/env.sh +53 -0
- package/karnel/utils/log.sh +567 -0
- package/karnel/utils/version.sh +205 -0
- package/package.json +42 -0
- package/scripts/npm-install.js +60 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_curl_pkg() {
|
|
8
|
+
loading "Installing Curl" _install_curl_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_curl_pkg_impl() {
|
|
12
|
+
if ! pkg install curl -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install Curl"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_curl_pkg() {
|
|
20
|
+
loading "Uninstalling Curl" _uninstall_curl_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_curl_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall curl -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall Curl"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_curl_pkg() {
|
|
32
|
+
loading "Updating Curl" _update_curl_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_curl_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade curl -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update Curl"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_curl() {
|
|
44
|
+
if command -v curl &>/dev/null; then
|
|
45
|
+
log_info "Curl is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing Curl..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_curl_pkg || return 1
|
|
53
|
+
log_success "Curl installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_curl() {
|
|
58
|
+
if ! command -v curl &>/dev/null; then
|
|
59
|
+
log_info "Curl is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling Curl..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_curl_pkg || return 1
|
|
66
|
+
log_success "Curl uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_curl() {
|
|
71
|
+
log_info "Updating Curl..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_curl_pkg || return 1
|
|
75
|
+
log_success "Curl updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_curl() {
|
|
80
|
+
uninstall_curl
|
|
81
|
+
install_curl
|
|
82
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Fzf
|
|
2
|
+
|
|
3
|
+
General-purpose command-line fuzzy finder
|
|
4
|
+
|
|
5
|
+
**Package:** fzf
|
|
6
|
+
**Author:** israel marques
|
|
7
|
+
**Repository:** https://github.com/israelmarques1024-dotcom/karnel-termux
|
|
8
|
+
**Official:** https://github.com/junegunn/fzf
|
|
9
|
+
**Type:** Development tool (pkg)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
fzf is a general-purpose command-line fuzzy finder. It is an interactive filter that can be used with any list of items (files, command history, processes, hostnames, bookmarks, etc.) and integrates with other tools like vim and zsh.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
karnel install dev --fzf
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
karnel uninstall dev --fzf
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
karnel update dev --fzf
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `fzf`
|
|
41
|
+
- Integrates with fuzzy matching
|
|
42
|
+
- Used by several shell plugins (fzf-tab, zsh-completions)
|
|
43
|
+
- Shell integration available
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_fzf_pkg() {
|
|
8
|
+
loading "Installing Fzf" _install_fzf_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_fzf_pkg_impl() {
|
|
12
|
+
if ! pkg install fzf -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install Fzf"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_fzf_pkg() {
|
|
20
|
+
loading "Uninstalling Fzf" _uninstall_fzf_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_fzf_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall fzf -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall Fzf"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_fzf_pkg() {
|
|
32
|
+
loading "Updating Fzf" _update_fzf_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_fzf_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade fzf -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update Fzf"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_fzf() {
|
|
44
|
+
if command -v fzf &>/dev/null; then
|
|
45
|
+
log_info "Fzf is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing Fzf..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_fzf_pkg || return 1
|
|
53
|
+
log_success "Fzf installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_fzf() {
|
|
58
|
+
if ! command -v fzf &>/dev/null; then
|
|
59
|
+
log_info "Fzf is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling Fzf..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_fzf_pkg || return 1
|
|
66
|
+
log_success "Fzf uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_fzf() {
|
|
71
|
+
log_info "Updating Fzf..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_fzf_pkg || return 1
|
|
75
|
+
log_success "Fzf updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_fzf() {
|
|
80
|
+
uninstall_fzf
|
|
81
|
+
install_fzf
|
|
82
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# GitHub CLI
|
|
2
|
+
|
|
3
|
+
Official GitHub command-line tool for managing repositories, PRs, and issues
|
|
4
|
+
|
|
5
|
+
**Package:** gh
|
|
6
|
+
**Author:** israel marques
|
|
7
|
+
**Repository:** https://github.com/israelmarques1024-dotcom/karnel-termux
|
|
8
|
+
**Official:** https://cli.github.com
|
|
9
|
+
**Type:** Development tool (pkg)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
GitHub CLI brings GitHub to your terminal. Manage issues, pull requests, repositories, gists, releases, and workflows directly from the command line without needing a web browser.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
karnel install dev --gh
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
karnel uninstall dev --gh
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
karnel update dev --gh
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `gh`
|
|
41
|
+
- Requires GitHub authentication: `gh auth login`
|
|
42
|
+
- Supports GitHub Actions, Codespaces, and more
|
|
43
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_gh_pkg() {
|
|
8
|
+
loading "Installing GitHub CLI" _install_gh_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_gh_pkg_impl() {
|
|
12
|
+
if ! pkg install gh -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install GitHub CLI"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_gh_pkg() {
|
|
20
|
+
loading "Uninstalling GitHub CLI" _uninstall_gh_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_gh_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall gh -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall GitHub CLI"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_gh_pkg() {
|
|
32
|
+
loading "Updating GitHub CLI" _update_gh_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_gh_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade gh -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update GitHub CLI"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_gh() {
|
|
44
|
+
if command -v gh &>/dev/null; then
|
|
45
|
+
log_info "GitHub CLI is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing GitHub CLI..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_gh_pkg || return 1
|
|
53
|
+
log_success "GitHub CLI installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_gh() {
|
|
58
|
+
if ! command -v gh &>/dev/null; then
|
|
59
|
+
log_info "GitHub CLI is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling GitHub CLI..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_gh_pkg || return 1
|
|
66
|
+
log_success "GitHub CLI uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_gh() {
|
|
71
|
+
log_info "Updating GitHub CLI..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_gh_pkg || return 1
|
|
75
|
+
log_success "GitHub CLI updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_gh() {
|
|
80
|
+
uninstall_gh
|
|
81
|
+
install_gh
|
|
82
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# HTML2Text
|
|
2
|
+
|
|
3
|
+
Convert HTML documents to plain text
|
|
4
|
+
|
|
5
|
+
**Package:** html2text
|
|
6
|
+
**Author:** israel marques
|
|
7
|
+
**Repository:** https://github.com/israelmarques1024-dotcom/karnel-termux
|
|
8
|
+
**Official:** https://github.com/grobian/html2text
|
|
9
|
+
**Type:** Utility tool (pkg)
|
|
10
|
+
**License:** GPL-2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
HTML2Text is a command-line tool that converts HTML documents into plain text. It handles tables, links, images, and formatting, making it useful for reading HTML emails, web pages, or documentation in the terminal.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
karnel install dev --html2text
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
karnel uninstall dev --html2text
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
karnel update dev --html2text
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `html2text`
|
|
41
|
+
- Converts HTML to readable plain text
|
|
42
|
+
- Handles tables and formatting
|
|
43
|
+
- Useful for terminal-based browsing
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_html2text_pkg() {
|
|
8
|
+
loading "Installing html2text" _install_html2text_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_html2text_pkg_impl() {
|
|
12
|
+
if ! pkg install html2text -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install html2text"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_html2text_pkg() {
|
|
20
|
+
loading "Uninstalling html2text" _uninstall_html2text_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_html2text_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall html2text -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall html2text"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_html2text_pkg() {
|
|
32
|
+
loading "Updating html2text" _update_html2text_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_html2text_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade html2text -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update html2text"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_html2text() {
|
|
44
|
+
if command -v html2text &>/dev/null; then
|
|
45
|
+
log_info "HTML2Text is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing html2text..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_html2text_pkg || return 1
|
|
53
|
+
log_success "html2text installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_html2text() {
|
|
58
|
+
if ! command -v html2text &>/dev/null; then
|
|
59
|
+
log_info "HTML2Text is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling html2text..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_html2text_pkg || return 1
|
|
66
|
+
log_success "html2text uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_html2text() {
|
|
71
|
+
log_info "Updating html2text..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_html2text_pkg || return 1
|
|
75
|
+
log_success "html2text updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_html2text() {
|
|
80
|
+
uninstall_html2text
|
|
81
|
+
install_html2text
|
|
82
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ImageMagick
|
|
2
|
+
|
|
3
|
+
Image manipulation and conversion suite
|
|
4
|
+
|
|
5
|
+
**Package:** imagemagick
|
|
6
|
+
**Author:** israel marques
|
|
7
|
+
**Repository:** https://github.com/israelmarques1024-dotcom/karnel-termux
|
|
8
|
+
**Official:** https://imagemagick.org
|
|
9
|
+
**Type:** Graphics tool (pkg)
|
|
10
|
+
**License:** ImageMagick License
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
ImageMagick is a free, open-source software suite for displaying, converting, and editing raster image files. It supports over 200 image formats and provides powerful command-line tools for image manipulation.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
karnel install dev --imagemagick
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
karnel uninstall dev --imagemagick
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
karnel update dev --imagemagick
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Commands: `convert`, `identify`, `mogrify`, `montage`
|
|
41
|
+
- Supports 200+ image formats
|
|
42
|
+
- Batch processing capabilities
|
|
43
|
+
- Used by various applications for thumbnails
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_imagemagick_pkg() {
|
|
8
|
+
loading "Installing ImageMagick" _install_imagemagick_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_imagemagick_pkg_impl() {
|
|
12
|
+
if ! pkg install imagemagick -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install ImageMagick"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_imagemagick_pkg() {
|
|
20
|
+
loading "Uninstalling ImageMagick" _uninstall_imagemagick_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_imagemagick_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall imagemagick -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall ImageMagick"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_imagemagick_pkg() {
|
|
32
|
+
loading "Updating ImageMagick" _update_imagemagick_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_imagemagick_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade imagemagick -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update ImageMagick"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_imagemagick() {
|
|
44
|
+
if command -v magick &>/dev/null; then
|
|
45
|
+
log_info "ImageMagick is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing ImageMagick..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_imagemagick_pkg || return 1
|
|
53
|
+
log_success "ImageMagick installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_imagemagick() {
|
|
58
|
+
if ! command -v magick &>/dev/null; then
|
|
59
|
+
log_info "ImageMagick is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling ImageMagick..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_imagemagick_pkg || return 1
|
|
66
|
+
log_success "ImageMagick uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_imagemagick() {
|
|
71
|
+
log_info "Updating ImageMagick..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_imagemagick_pkg || return 1
|
|
75
|
+
log_success "ImageMagick updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_imagemagick() {
|
|
80
|
+
uninstall_imagemagick
|
|
81
|
+
install_imagemagick
|
|
82
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# jq
|
|
2
|
+
|
|
3
|
+
Lightweight and flexible command-line JSON processor
|
|
4
|
+
|
|
5
|
+
**Package:** jq
|
|
6
|
+
**Author:** israel marques
|
|
7
|
+
**Repository:** https://github.com/israelmarques1024-dotcom/karnel-termux
|
|
8
|
+
**Official:** https://jqlang.org
|
|
9
|
+
**Type:** Development tool (pkg)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
jq is a lightweight and flexible command-line JSON processor. It is like sed for JSON data - you can use it to slice, filter, map, and transform structured data with the same ease that sed, awk, grep, and friends let you play with text.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
karnel install dev --jq
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
karnel uninstall dev --jq
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
karnel update dev --jq
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `jq`
|
|
41
|
+
- Used extensively by Karnel Termux for JSON parsing
|
|
42
|
+
- Supports complex queries and transformations
|
|
43
|
+
- Customizable output formatting
|
|
44
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$KARNEL_CACHE/install_dev.log"
|
|
6
|
+
|
|
7
|
+
_install_jq_pkg() {
|
|
8
|
+
loading "Installing jq" _install_jq_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_jq_pkg_impl() {
|
|
12
|
+
if ! pkg install jq -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install jq"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_uninstall_jq_pkg() {
|
|
20
|
+
loading "Uninstalling jq" _uninstall_jq_pkg_impl
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_uninstall_jq_pkg_impl() {
|
|
24
|
+
if ! pkg uninstall jq -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to uninstall jq"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_update_jq_pkg() {
|
|
32
|
+
loading "Updating jq" _update_jq_pkg_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_update_jq_pkg_impl() {
|
|
36
|
+
if ! pkg upgrade jq -y &>>"$LOG_FILE"; then
|
|
37
|
+
log_error "Failed to update jq"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
return 0
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_jq() {
|
|
44
|
+
if command -v jq &>/dev/null; then
|
|
45
|
+
log_info "jq is already installed"
|
|
46
|
+
return 2
|
|
47
|
+
fi
|
|
48
|
+
log_info "Installing jq..."
|
|
49
|
+
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
|
|
52
|
+
_install_jq_pkg || return 1
|
|
53
|
+
log_success "jq installed"
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_jq() {
|
|
58
|
+
if ! command -v jq &>/dev/null; then
|
|
59
|
+
log_info "jq is not installed"
|
|
60
|
+
return 2
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling jq..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_jq_pkg || return 1
|
|
66
|
+
log_success "jq uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
update_jq() {
|
|
71
|
+
log_info "Updating jq..."
|
|
72
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
73
|
+
|
|
74
|
+
_update_jq_pkg || return 1
|
|
75
|
+
log_success "jq updated"
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
reinstall_jq() {
|
|
80
|
+
uninstall_jq
|
|
81
|
+
install_jq
|
|
82
|
+
}
|