mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
cmds.projects.CmdListRepos: Init SSHClient with app opts
Use the global --verbose and --interactive command-line options as defaults for constructing a SSHClient instance for use with listing repos over SSH. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5ae2dde608
commit
5fded01d00
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class CmdListRepos(Cmd): # export
|
||||||
case 'ssh':
|
case 'ssh':
|
||||||
if re.match(r'ssh://.*git\.janware\.com/', args.base_url):
|
if re.match(r'ssh://.*git\.janware\.com/', args.base_url):
|
||||||
from jw.pkg.lib.ec.SSHClient import ssh_client
|
from jw.pkg.lib.ec.SSHClient import ssh_client
|
||||||
ssh = ssh_client(args.base_url)
|
ssh = ssh_client(args.base_url, interactive=self.app.interactive, verbose_default=self.app.verbose)
|
||||||
if username is not None:
|
if username is not None:
|
||||||
ssh.set_username(username)
|
ssh.set_username(username)
|
||||||
if password is not None:
|
if password is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue