mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 16:45:24 +02:00
lib.SSHClient.run_cmd(): Accept cmd: list[str]
Make SSHClient accept a list of strings for the cmd argument to align with the other run_cmd() functions in jw-pkg. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5a48143064
commit
d0776db01f
2 changed files with 40 additions and 16 deletions
|
|
@ -38,9 +38,9 @@ class CmdListRepos(Cmd): # export
|
|||
ssh.set_username(username)
|
||||
if password is not None:
|
||||
ssh.set_password(password)
|
||||
cmd = f'/opt/jw-pkg/bin/git-srv-admin.sh -u {args.from_owner} -j list-personal-projects'
|
||||
out = await ssh.run_cmd(cmd)
|
||||
print(out)
|
||||
cmd = ['/opt/jw-pkg/bin/git-srv-admin.sh', '-u', args.from_owner, '-j', 'list-personal-projects']
|
||||
stdout, stderr, code = await ssh.run_cmd(cmd)
|
||||
print(stdout)
|
||||
return
|
||||
case 'https':
|
||||
cmd_input = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue