Skip to content

Commit 2a6164f

Browse files
committed
list languages support added
1 parent b9efb3d commit 2a6164f

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

run

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Can't rewrite without this banner(line 3-23)!
2323

2424
red=$(tput setaf 1)
25-
# green=$(tput setaf 2)
25+
green=$(tput setaf 2)
2626
yellow=$(tput setaf 3)
2727
blue=$(tput setaf 4)
2828
cyan=$(tput setaf 6)
@@ -41,7 +41,10 @@ ${blue}OPTIONS: ${white}
4141
${blue}Clean Utility:${white}
4242
run ${red}rclean-exe${white} ${yellow}:${white} deletes all executable files within the folder recursively
4343
run ${red}clean-exe${white} ${yellow}:${white} deletes all executable files within the folder NON recursively
44-
run ${red}clean${white} ${yellow}:${white} removes debug folder, .out and temp files"
44+
run ${red}clean${white} ${yellow}:${white} removes debug folder, .out and temp files
45+
46+
${blue}Miscellaneous:${white}
47+
run [${red}--list-langs${white}/${red}ll${white}] ${yellow}:${white} lists all languages supported by this code-runner"
4548

4649
_ERROR_UFTC_() {
4750
echo "${red}ERROR: ${white}This file type can't be compiled or the file does not exist!"
@@ -187,6 +190,17 @@ for arg in "$@"; do
187190
echo "$USAGE" && exit 0
188191
;;
189192

193+
"ll" | "--list-langs")
194+
echo
195+
echo " ${cyan}Languages supported by the currently installed version of ${red}code-runner${cyan}:"
196+
echo " ${yellow}>>${white} C ${cyan}[${white}with ${green}debug${white} support${cyan}]"
197+
echo " ${yellow}>>${white} C++ ${cyan}[${white}with ${green}debug${white} support${cyan}]"
198+
echo " ${yellow}>>${white} Python"
199+
echo " ${yellow}>>${white} Rust"
200+
echo " ${yellow}>>${white} Java"
201+
echo
202+
;;
203+
190204
*".c" | *".cpp" | *".py" | *".rs" | *".java")
191205
FILE_LOCATION=$arg
192206
if [[ ! -f $FILE_LOCATION ]]; then

0 commit comments

Comments
 (0)