termux-connecting 1.1.29 → 1.1.30

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.
@@ -382,6 +382,11 @@ cmd_remove() {
382
382
  local name="$1"
383
383
  if [ -z "$name" ]; then
384
384
  error "Nama device diperlukan"
385
+ echo ""
386
+ echo " Device terdaftar:"
387
+ list_devices
388
+ echo ""
389
+ echo " Gunakan: termux-connect-pc remove <nama>"
385
390
  return
386
391
  fi
387
392
  if [ ! -f "$DEVICES_DIR/$name" ]; then
@@ -451,12 +456,24 @@ main() {
451
456
  echo " 1) Konek ke ${ACTIVE_DEVICE}"
452
457
  echo " 2) Tambah device baru"
453
458
  echo " 3) Lihat daftar device"
459
+ echo " 4) Hapus device"
454
460
  echo ""
455
461
  echo -n " Pilih [1]: "
456
462
  read -r choice
457
463
  case "$choice" in
458
464
  2) cmd_connection ;;
459
465
  3) cmd_list ;;
466
+ 4)
467
+ echo ""
468
+ echo " Device terdaftar:"
469
+ list_devices
470
+ echo ""
471
+ local del_name
472
+ del_name=$(prompt " ➤ Nama device yg dihapus" "")
473
+ if [ -n "$del_name" ]; then
474
+ cmd_remove "$del_name"
475
+ fi
476
+ ;;
460
477
  *) cmd_check ;;
461
478
  esac
462
479
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",