File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222# Can't rewrite without this banner(line 3-23)!
2323
2424red=$( tput setaf 1)
25- # green=$(tput setaf 2)
25+ green=$( tput setaf 2)
2626yellow=$( tput setaf 3)
2727blue=$( tput setaf 4)
2828cyan=$( 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
You can’t perform that action at this time.
0 commit comments