Skip to content

Commit b1dbbe3

Browse files
author
kernelsmith
committed
msftidy eol fixes
1 parent 3210c53 commit b1dbbe3

File tree

1 file changed

+25
-25
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+25
-25
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ def cmd_jobs(*args)
780780
# @param str [String] the string currently being typed before tab was hit
781781
# @param words [Array<String>] the previously completed words on the command line. words is always
782782
# at least 1 when tab completion has reached this stage since the command itself has been completed
783-
783+
784784
def cmd_jobs_tabs(str, words)
785785
if words.length == 1
786786
return @@jobs_opts.fmt.keys
@@ -810,7 +810,7 @@ def cmd_kill(*args)
810810
# @param str [String] the string currently being typed before tab was hit
811811
# @param words [Array<String>] the previously completed words on the command line. words is always
812812
# at least 1 when tab completion has reached this stage since the command itself has been completed
813-
813+
814814
def cmd_kill_tabs(str, words)
815815
return [] if words.length > 1
816816
framework.jobs.keys
@@ -932,7 +932,7 @@ def cmd_threads(*args)
932932
# @param str [String] the string currently being typed before tab was hit
933933
# @param words [Array<String>] the previously completed words on the command line. words is always
934934
# at least 1 when tab completion has reached this stage since the command itself has been completed
935-
935+
936936
def cmd_threads_tabs(str, words)
937937
if words.length == 1
938938
return @@threads_opts.fmt.keys
@@ -1012,7 +1012,7 @@ def cmd_load(*args)
10121012
# @param str [String] the string currently being typed before tab was hit
10131013
# @param words [Array<String>] the previously completed words on the command line. words is always
10141014
# at least 1 when tab completion has reached this stage since the command itself has been completed
1015-
1015+
10161016
def cmd_load_tabs(str, words)
10171017
tabs = []
10181018

@@ -1175,7 +1175,7 @@ def cmd_route(*args)
11751175
# @param str [String] the string currently being typed before tab was hit
11761176
# @param words [Array<String>] the previously completed words on the command line. words is always
11771177
# at least 1 when tab completion has reached this stage since the command itself has been completed
1178-
1178+
11791179
def cmd_route_tabs(str, words)
11801180
if words.length == 1
11811181
return %w{add remove get flush print}
@@ -1304,7 +1304,7 @@ def cmd_loadpath(*args)
13041304
# @param str [String] the string currently being typed before tab was hit
13051305
# @param words [Array<String>] the previously completed words on the command line. words is always
13061306
# at least 1 when tab completion has reached this stage since the command itself has been completed
1307-
1307+
13081308
def cmd_loadpath_tabs(str, words)
13091309
return [] if words.length > 1
13101310

@@ -1429,7 +1429,7 @@ def search_modules_sql(match)
14291429
# @param str [String] the string currently being typed before tab was hit
14301430
# @param words [Array<String>] the previously completed words on the command line. words is always
14311431
# at least 1 when tab completion has reached this stage since the command itself has been completed
1432-
1432+
14331433
def cmd_search_tabs(str, words)
14341434
if words.length == 1
14351435
return @@search_opts.fmt.keys
@@ -1748,7 +1748,7 @@ def cmd_sessions(*args)
17481748
# @param str [String] the string currently being typed before tab was hit
17491749
# @param words [Array<String>] the previously completed words on the command line. words is always
17501750
# at least 1 when tab completion has reached this stage since the command itself has been completed
1751-
1751+
17521752
def cmd_sessions_tabs(str, words)
17531753
if words.length == 1
17541754
return @@sessions_opts.fmt.keys
@@ -1873,7 +1873,7 @@ def cmd_set(*args)
18731873
# @param str [String] the string currently being typed before tab was hit
18741874
# @param words [Array<String>] the previously completed words on the command line. words is always
18751875
# at least 1 when tab completion has reached this stage since the command itself has been completed
1876-
1876+
18771877
def cmd_set_tabs(str, words)
18781878

18791879
# A value has already been specified
@@ -1958,7 +1958,7 @@ def cmd_setg(*args)
19581958
# @param str [String] the string currently being typed before tab was hit
19591959
# @param words [Array<String>] the previously completed words on the command line. words is always
19601960
# at least 1 when tab completion has reached this stage since the command itself has been completed
1961-
1961+
19621962
def cmd_setg_tabs(str, words)
19631963
cmd_set_tabs(str, words)
19641964
end
@@ -2058,7 +2058,7 @@ def cmd_show(*args)
20582058
# @param str [String] the string currently being typed before tab was hit
20592059
# @param words [Array<String>] the previously completed words on the command line. words is always
20602060
# at least 1 when tab completion has reached this stage since the command itself has been completed
2061-
2061+
20622062
def cmd_show_tabs(str, words)
20632063
return [] if words.length > 1
20642064

@@ -2107,7 +2107,7 @@ def cmd_unload(*args)
21072107
# @param str [String] the string currently being typed before tab was hit
21082108
# @param words [Array<String>] the previously completed words on the command line. words is always
21092109
# at least 1 when tab completion has reached this stage since the command itself has been completed
2110-
2110+
21112111
def cmd_unload_tabs(str, words)
21122112
return [] if words.length > 1
21132113

@@ -2184,7 +2184,7 @@ def cmd_unset(*args)
21842184
# @param str [String] the string currently being typed before tab was hit
21852185
# @param words [Array<String>] the previously completed words on the command line. words is always
21862186
# at least 1 when tab completion has reached this stage since the command itself has been completed
2187-
2187+
21882188
def cmd_unset_tabs(str, words)
21892189
datastore = active_module ? active_module.datastore : self.framework.datastore
21902190
datastore.keys
@@ -2212,7 +2212,7 @@ def cmd_unsetg(*args)
22122212
# @param str [String] the string currently being typed before tab was hit
22132213
# @param words [Array<String>] the previously completed words on the command line. words is always
22142214
# at least 1 when tab completion has reached this stage since the command itself has been completed
2215-
2215+
22162216
def cmd_unsetg_tabs(str, words)
22172217
self.framework.datastore.keys
22182218
end
@@ -2347,7 +2347,7 @@ def cmd_pushm(*args)
23472347
# @param str [String] the string currently being typed before tab was hit
23482348
# @param words [Array<String>] the previously completed words on the command line. words is always
23492349
# at least 1 when tab completion has reached this stage since the command itself has been completed
2350-
2350+
23512351
def cmd_pushm_tabs(str, words)
23522352
tab_complete_module(str, words)
23532353
end
@@ -2403,8 +2403,8 @@ def cmd_popm_help
24032403
#
24042404
# @param str [String] the string currently being typed before tab was hit
24052405
# @param words [Array<String>] the previously completed words on the command line. words is always
2406-
# at least 1 when tab completion has reached this stage since the command itself has been completed
2407-
2406+
# at least 1 when tab completion has reached this stage since the command itself has been completd
2407+
24082408
def cmd_use_tabs(str, words)
24092409
return [] if words.length > 1
24102410

@@ -2438,9 +2438,9 @@ def cmd_grep_help
24382438
# Greps the output of another console command, usage is similar the shell grep command
24392439
# grep [options] pattern other_cmd [other command's args], similar to the shell's grep [options] pattern file
24402440
# however it also includes -k to keep lines and -s to skip lines. grep -k 5 is useful for keeping table headers
2441-
#
2441+
#
24422442
# @param args [Array<String>] Args to the grep command minimally including a pattern & a command to search
2443-
# @return [String,nil] Results matching the regular expression given
2443+
# @return [String,nil] Results matching the regular expression given
24442444

24452445
def cmd_grep(*args)
24462446
return cmd_grep_help if args.length < 2
@@ -2507,7 +2507,7 @@ def cmd_grep(*args)
25072507
def temp_output.write(msg = '')
25082508
self.print_raw(msg)
25092509
end
2510-
orig_driver.init_ui(orig_driver_input,temp_output)
2510+
orig_driver.init_ui(orig_driver_input,temp_output)
25112511
# run the desired command to be grepped
25122512
orig_driver.run_single(cmd)
25132513
# restore original output
@@ -2534,19 +2534,19 @@ def temp_output.write(msg = '')
25342534
all_lines = cmd_output.lines.select {|line| line}
25352535
# control matching based on remaining match_mods (:insensitive was already handled)
25362536
if match_mods[:invert]
2537-
statement = 'not line =~ rx'
2537+
statement = 'not line =~ rx'
25382538
else
25392539
statement = 'line =~ rx'
25402540
end
2541-
2541+
25422542
our_lines = []
25432543
count = 0
25442544
all_lines.each_with_index do |line, line_num|
25452545
next if (output_mods[:skip] and line_num < output_mods[:skip])
25462546
our_lines << line if (output_mods[:keep] and line_num < output_mods[:keep])
25472547
# we don't wan't to keep processing if we have a :max and we've reached it already (not counting skips/keeps)
25482548
break if match_mods[:max] and count >= match_mods[:max]
2549-
if eval statement
2549+
if eval statement
25502550
count += 1
25512551
# we might get a -A/after and a -B/before at the same time
25522552
our_lines += retrieve_grep_lines(all_lines,line_num,output_mods[:before], output_mods[:after])
@@ -2564,13 +2564,13 @@ def temp_output.write(msg = '')
25642564
# @param str [String] the string currently being typed before tab was hit
25652565
# @param words [Array<String>] the previously completed words on the command line. words is always
25662566
# at least 1 when tab completion has reached this stage since the command itself has been completed
2567-
2567+
25682568
def cmd_grep_tabs(str, words)
25692569
tabs = @@grep_opts.fmt.keys || [] # default to use grep's options
25702570
# if not an opt, use normal tab comp.
25712571
# @todo uncomment out next line when tab_completion normalization is complete RM7649 or
25722572
# replace with new code that permits "nested" tab completion
2573-
# tabs = driver.get_all_commands if (str and str =~ /\w/)
2573+
# tabs = driver.get_all_commands if (str and str =~ /\w/)
25742574
tabs
25752575
end
25762576

0 commit comments

Comments
 (0)