Repository URL to install this package:
|
Version:
0.3.30 ▾
|
from . import base
from ... import commands
class Exec(base.BaseCommand):
names = ['exec', 'execute']
help = 'Exec into a container'
arguments = (
dict(dest='host', action='store', help='Host to connect to'),
dict(dest='container_id', action='store', help='Container ID to exec'),
dict(dest='command', action='store', help='Command to execute on container')
)
def run(self):
return commands.container_exec(app=self.app, **self.kwargs)