karnel-termux 4.11.1 → 4.11.2
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/karnel/cli/commands/open.sh +21 -7
- package/karnel/utils/env.sh +1 -1
- package/package.json +1 -1
|
@@ -85,15 +85,26 @@ open_main() {
|
|
|
85
85
|
esac
|
|
86
86
|
|
|
87
87
|
if command -v termux-open-url &>/dev/null; then
|
|
88
|
-
termux-open-url "$url"
|
|
89
|
-
|
|
88
|
+
termux-open-url "$url" 2>/dev/null && {
|
|
89
|
+
log_success "Opening: ${D_CYAN}$url${NC}"
|
|
90
|
+
return 0
|
|
91
|
+
}
|
|
92
|
+
log_warn "Failed to open URL, printing to terminal instead"
|
|
93
|
+
echo
|
|
94
|
+
echo " ${D_CYAN}$url${NC}"
|
|
95
|
+
echo
|
|
90
96
|
elif command -v termux-open &>/dev/null; then
|
|
91
|
-
termux-open "$url"
|
|
92
|
-
|
|
97
|
+
termux-open "$url" 2>/dev/null && {
|
|
98
|
+
log_success "Opening: ${D_CYAN}$url${NC}"
|
|
99
|
+
return 0
|
|
100
|
+
}
|
|
101
|
+
log_warn "Failed to open URL, printing to terminal instead"
|
|
102
|
+
echo " ${D_CYAN}$url${NC}"
|
|
93
103
|
else
|
|
94
|
-
|
|
95
|
-
echo
|
|
96
|
-
|
|
104
|
+
log_info "Documentation at:"
|
|
105
|
+
echo
|
|
106
|
+
echo " ${D_CYAN}$url${NC}"
|
|
107
|
+
echo
|
|
97
108
|
fi
|
|
98
109
|
}
|
|
99
110
|
|
|
@@ -124,6 +135,9 @@ open_help() {
|
|
|
124
135
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "utils" "Utility tools"
|
|
125
136
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "voice" "Voice command"
|
|
126
137
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "osint" "OSINT tools"
|
|
138
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "plugin" "Plugin system"
|
|
139
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "security" "Security tools"
|
|
140
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "backup" "Backup & Restore"
|
|
127
141
|
echo
|
|
128
142
|
separator_section "Website"
|
|
129
143
|
echo
|
package/karnel/utils/env.sh
CHANGED
package/package.json
CHANGED