mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
263 B
Python
16 lines
263 B
Python
from invoke import Context
|
|
|
|
@decorator
|
|
def opens(method, self, *args, **kwargs):
|
|
self.open()
|
|
return method(self, *args, **kwargs)
|
|
|
|
class Connection(Context):
|
|
|
|
def open(self):
|
|
pass
|
|
|
|
@opens
|
|
def run(self, command, **kwargs):
|
|
pass
|