mirror of https://github.com/mjohanning99/RubyTLDR
Merge branch 'devel-2' into 'master'
Version 2.0.1 Bug fix See merge request mjohanning/RubyTldr!1master v2.0.1
commit
4067965e08
|
@ -88,7 +88,7 @@ The words displayed in `<>` are to be replaced by the user according to their ne
|
|||
You are able to access all the tldr pages from whatever operating system. The operating system the command is intended to be used on is the first thing on the Tldr page, written in all capital letters.
|
||||
|
||||
### New tldr pages
|
||||
The original tldr project is alive and well. New pages are being added regularly and old ones are being updated. In order to keep up with all the changes, I implemented a feature that will automatically try to download commands that weren't found on your machine. If it is able to find the responding tldr-page on the official Gitlab Repository, it will download it and you will be able to use it locally as well.
|
||||
The original tldr project is alive and well. New pages are being added regularly and old ones are being updated. In order to keep up with all the changes, I implemented a feature that will automatically try to download commands that weren't found on your machine. If it is able to find the corresponding tldr-page on the official Gitlab Repository, it will download it and you will be able to use it locally as well.
|
||||
|
||||
![New pages download](lib/media/newpages.png)
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ if [[ -e ~/.rtldr ]]; then
|
|||
|
||||
if [ ! $no_questions ]; then
|
||||
while true; do
|
||||
read -r -p " [Y/n] " input
|
||||
read -r -p " [y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
|
@ -86,7 +86,7 @@ if [ -L /bin/rtldr ]; then
|
|||
|
||||
if [ ! $no_questions ]; then
|
||||
while true; do
|
||||
read -r -p " [Y/n] " input
|
||||
read -r -p " [y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
|
@ -122,7 +122,7 @@ if [[ `gem list` != *colorize* ]]; then
|
|||
|
||||
if [ ! $no_questions ]; then
|
||||
while true; do
|
||||
read -r -p " [Y/n] " input
|
||||
read -r -p " [y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
|
@ -159,7 +159,7 @@ if [[ `gem list` != *rubyzip* ]]; then
|
|||
|
||||
if [ ! $no_questions ]; then
|
||||
while true; do
|
||||
read -r -p " [Y/n] " input
|
||||
read -r -p " [y/n] " input
|
||||
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
|
|
|
@ -54,7 +54,13 @@ require_relative 'extract_zip.rb'
|
|||
require_relative 'formatting.rb'
|
||||
|
||||
#Option Parser
|
||||
require_relative 'option_parser.rb'
|
||||
begin
|
||||
require_relative 'option_parser.rb'
|
||||
rescue OptionParser::InvalidOption
|
||||
puts "ERROR!".colorize(:background => :red) + " The flag you entered does not exist\n" \
|
||||
"Try typing rtldr --help to get more information on how to use this program"
|
||||
exit
|
||||
end
|
||||
|
||||
#Predefined variables
|
||||
@parent_directory = File.expand_path('..', File.dirname(__FILE__))
|
||||
|
|
Loading…
Reference in New Issue