Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_adhoc.py @ 3368:e86b71b1aa31
core: minor typos, docstring/comments update
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Sep 2020 14:05:40 +0200 |
parents | 559a625a236b |
children | be6d91572633 |
comparison
equal
deleted
inserted
replaced
3367:90aee1f2d07c | 3368:e86b71b1aa31 |
---|---|
161 await xmlui.submitForm() | 161 await xmlui.submitForm() |
162 self.host.quit() | 162 self.host.quit() |
163 | 163 |
164 | 164 |
165 class List(base.CommandBase): | 165 class List(base.CommandBase): |
166 """Run an Ad-Hoc command""" | 166 """List Ad-Hoc commands available on a service""" |
167 | 167 |
168 def __init__(self, host): | 168 def __init__(self, host): |
169 super(List, self).__init__( | 169 super(List, self).__init__( |
170 host, "list", use_verbose=True, help=_("list Ad-Hoc commands of a service") | 170 host, "list", use_verbose=True, help=_("list Ad-Hoc commands of a service") |
171 ) | 171 ) |
173 def add_parser_options(self): | 173 def add_parser_options(self): |
174 self.parser.add_argument( | 174 self.parser.add_argument( |
175 "-j", | 175 "-j", |
176 "--jid", | 176 "--jid", |
177 default="", | 177 default="", |
178 help=_("jid of the service (default: profile's server"), | 178 help=_("jid of the service (default: profile's server)"), |
179 ) | 179 ) |
180 | 180 |
181 async def start(self): | 181 async def start(self): |
182 try: | 182 try: |
183 xmlui_raw = await self.host.bridge.adHocList( | 183 xmlui_raw = await self.host.bridge.adHocList( |