Run(root)
This commit is contained in:
parent
189c4c3856
commit
77f0d1f67b
@ -1,10 +1,14 @@
|
||||
|
||||
|
||||
class Run:
|
||||
def __init__(self, cmd):
|
||||
def __init__(self, cmd, root=False):
|
||||
self.cmd = cmd
|
||||
self.root = root
|
||||
|
||||
async def __call__(self, target):
|
||||
if self.root:
|
||||
self.proc = await target.rexec(self.cmd)
|
||||
else:
|
||||
self.proc = await target.exec(self.cmd)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user