def detail(): targets, type_ = parse_args('get_detail') if type_ == 'tag': res = get_tags_property(targets) else: res = get_paths_property(targets) return pack_result(res)
def mkdir(): res = newdir(*parse_args('new_dir')) return pack_result(res)
def mv(): res = move(*parse_args('move')) return pack_result(res)
def cp(): res = copy(*parse_args('copy')) return pack_result(res)
def rm(): '''删除文件''' res = remove(*parse_args('remove')) return pack_result(res)
def tab(): '''获取命令行帮助信息''' return pack_result(tab_cmd(*parse_args('tab_cmd')))
def help(): '''获取命令行帮助信息''' return pack_result(help_cmd(*parse_args('help')))
def unfold(): res = unfold_tag(*parse_args('unfold')) return pack_result(res)
def readfile(): '''读取文件内容''' data, response_type = get_file(*parse_args('read_file')) # if type_ == 'file': # response = pack_result({}) return pack_result(data, response_type)
def open(): res = open_file(*parse_args('open_file')) return pack_result(res)
def cd(): res = list_path(*parse_args('list_path'), cd=True) return pack_result(res)
def changetag(): return pack_result(change_tag(*parse_args('change_tag')))
def rmtag(): return pack_result(rm_tag(*parse_args('rm_tag')))
def listPath(): res = list_path(*parse_args('list_path')) return pack_result(res)
def newtag(): result = new_tag(*parse_args('new_tag')) return pack_result(result)
def alias(): '''设置别名''' res = set_alias(*parse_args('alias')) return pack_result(res)
def settag(): result = set_tag(*parse_args('set_tag')) return pack_result(result)
def modtag(): res = mod_tag(*parse_args('mod_tag')) return pack_result(res)