mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-07 05:31:18 +00:00
16 lines
380 B
Python
16 lines
380 B
Python
# Appends .java when compiling java files
|
|
#
|
|
# Example:
|
|
# > javac foo
|
|
# error: Class names, 'foo', are only accepted if annotation
|
|
# processing is explicitly requested
|
|
|
|
|
|
def match(command, settings):
|
|
return (command.script.startswith('javac ')
|
|
and not command.script.endswith('.java'))
|
|
|
|
|
|
def get_new_command(command, settings):
|
|
return command.script + '.java'
|