Sha256: 6e94147da35a57621a30c371cc186f38272677ad917ce245c0c4ac6fcd3bcde1
Contents?: true
Size: 612 Bytes
Versions: 11
Compression:
Stored size: 612 Bytes
Contents
#!/usr/bin/env ruby require 'learn' NON_PRE_CONFIG_COMMANDS = [ 'reset', 'whoami', 'directory', 'help', 'version', '--version', '-v', 'doctor', 'new' ] INTERNET_REQUIRED_COMMANDS = [ 'whoami', 'doctor', 'directory', 'reset' ] if ['-v', '--version'].include?(ARGV.first) puts Learn::VERSION exit end Learn::OptionsSanitizer.new(ARGV).sanitize! if !(NON_PRE_CONFIG_COMMANDS.include?(ARGV[0])) system('learn-config') unless Learn::InternetConnection.no_internet_connection? end if INTERNET_REQUIRED_COMMANDS.include?(ARGV[0]) Learn::InternetConnection.test_connection end Learn::CLI.start(ARGV)
Version data entries
11 entries across 11 versions & 1 rubygems