add -p option for support to open PW_OPEN folder.
This commit is contained in:
@ -8,6 +8,7 @@ class LsCommand(BaseCommand):
|
||||
def register(cls, parsers: _SubParsersAction) -> None:
|
||||
command = cls()
|
||||
ls_parser = parsers.add_parser("ls", help="list the folder contents")
|
||||
ls_parser.add_argument("-p", "--password", help="password to use when open locked folder")
|
||||
ls_parser.add_argument("remote_path", help="remote folder path (remote:/lab/path/)")
|
||||
ls_parser.set_defaults(func=command.ls)
|
||||
|
||||
@ -15,7 +16,7 @@ class LsCommand(BaseCommand):
|
||||
(remote, laboratory_name, r_path) = self._parse_remote_host_with_path(args.remote_path)
|
||||
connection = self._create_connection(remote)
|
||||
laboratory = self._find_laboratory(connection, laboratory_name)
|
||||
folder = self._find_folder(connection, laboratory, r_path)
|
||||
folder = self._find_folder(connection, laboratory, r_path, args.password)
|
||||
label = {
|
||||
"type": "Type",
|
||||
"acl": "Access",
|
||||
|
Reference in New Issue
Block a user