Add files via upload

Signed-off-by: VetheonGames <76892542+VetheonGames@users.noreply.github.com>
This commit is contained in:
VetheonGames 2023-06-03 10:25:27 -06:00 committed by GitHub
parent 050104619f
commit cfb9e923d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

24
bin/NETRAVE Normal file
View 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
View 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
View 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