File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,9 +221,28 @@ def viewAttachedFiles():
221221 continue
222222 for n , line in enumerate (code .splitlines ()):
223223 if "/* Output:" in line :
224- os .system ("subl {}:{}" .format (java , n ))
224+ # os.system("subl {}:{}".format(java, n))
225+ os .system ("subl {}" .format (java ))
225226 continue
226227
228+ @CmdLine ('s' )
229+ def showJavaFiles ():
230+ """Show all java files in this directory and below"""
231+ for java in Path ("." ).rglob ("*.java" ):
232+ os .system ("subl {}" .format (java ))
233+
234+ @CmdLine ('b' )
235+ def blankOutputFiles ():
236+ """Show java files with expected output where there is none"""
237+ find_output = re .compile (r"/\* Output:(.*)\*///:~" , re .DOTALL )
238+ os .chdir (str (examplePath ))
239+ for java in Path ("." ).rglob ("*.java" ):
240+ with java .open () as codeFile :
241+ output = find_output .search (codeFile .read ())
242+ if output :
243+ # print(output.group(1))
244+ if not output .group (1 ).strip ():
245+ print (java )
227246
228247@CmdLine ('a' )
229248def attachFiles ():
You can’t perform that action at this time.
0 commit comments