-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·38 lines (33 loc) · 793 Bytes
/
start.sh
File metadata and controls
executable file
·38 lines (33 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Activate virtual environment
source "task-wizard/bin/activate"
# Function to display the menu
function display_menu() {
echo "(1) Generate API keys"
echo "(2) Extend epochs"
echo "(3) Compare JSON files"
echo "Enter your choice: "
}
# Get user input
display_menu
read -r choice
# Process user choice using a case statement
case $choice in
1)
python tasks/api_key_generator.py
;;
2)
python tasks/epoch_handler.py
;;
3)
# Script might require two file paths, prompt the user
echo "Enter the path to the first JSON file: "
read -r file1
echo "Enter the path to the second JSON file: "
read -r file2
python tasks/json_comparator.py $file1 $file2 # Pass multiple arguments
;;
*)
echo "Invalid choice!"
;;
esac