mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
14 lines
341 B
Python
14 lines
341 B
Python
from thefuck.shells import shell
|
|
from thefuck.utils import for_app
|
|
|
|
|
|
@for_app('terraform')
|
|
def match(command):
|
|
return ('this module is not yet installed' in command.output.lower() or
|
|
'initialization required' in command.output.lower()
|
|
)
|
|
|
|
|
|
def get_new_command(command):
|
|
return shell.and_('terraform init', command.script)
|