Add files via upload
Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
This commit is contained in:
parent
050104619f
commit
cfb9e923d8
24
bin/NETRAVE
Normal file
24
bin/NETRAVE
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Prompt the user to choose the mode using dialog
|
||||
MODE=$(dialog --backtitle "NETRAVE Mode Selection" --title "Select Mode" --menu "Choose the mode to start NETRAVE:" 12 50 4 1 "CLI" 2 "GUI" 3 "WebApp" 2>&1 >/dev/tty)
|
||||
|
||||
# Execute different commands based on the selected mode
|
||||
case $MODE in
|
||||
1)
|
||||
# CLI mode
|
||||
ruby ./lib/NETRAVE.rb cli
|
||||
;;
|
||||
2)
|
||||
# GUI mode
|
||||
ruby ./lib/NETRAVE.rb gui
|
||||
;;
|
||||
3)
|
||||
# WebApp mode
|
||||
ruby ./lib/NETRAVE.rb webapp
|
||||
;;
|
||||
*)
|
||||
# Invalid selection or canceled
|
||||
echo "Invalid selection or canceled."
|
||||
;;
|
||||
esac
|
8
lib/Gemfile
Normal file
8
lib/Gemfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
# gem "rails"
|
||||
|
||||
gem "curses", "~> 1.4"
|
||||
gem 'console'
|
17
lib/Gemfile.lock
Normal file
17
lib/Gemfile.lock
Normal file
|
@ -0,0 +1,17 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
console (1.16.2)
|
||||
fiber-local
|
||||
curses (1.4.4)
|
||||
fiber-local (1.0.0)
|
||||
|
||||
PLATFORMS
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
console
|
||||
curses (~> 1.4)
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.13
|
Loading…
Reference in New Issue
Block a user