@fiss_cmd<EOL>def config_list(args):
verbose = fcconfig.verbosity<EOL>if args.workspace:<EOL><INDENT>if verbose:<EOL><INDENT>print("<STR_LIT>".format(args.workspace))<EOL><DEDENT>if not args.project:<EOL><INDENT>eprint("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>r = fapi.list_workspace_configs(args.project, args.workspace)<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL><DEDENT>else:<EOL><INDENT>if verbose:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>r = fapi.list_repository_configs(namespace=args.namespace,<EOL>name=args.config,<EOL>snapshotId=args.snapshot_id)<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL><DEDENT>methods = r.json()<EOL>results = []<EOL>for m in methods:<EOL><INDENT>ns = m['<STR_LIT>']<EOL>if not ns:<EOL><INDENT>ns = '<STR_LIT>'<EOL><DEDENT>name = m['<STR_LIT:name>']<EOL>mver = m.get('<STR_LIT>', None)<EOL>if mver:<EOL><INDENT>mver = mver.get('<STR_LIT>', '<STR_LIT>')     <EOL><DEDENT>else:<EOL><INDENT>mver = m.get('<STR_LIT>', '<STR_LIT>')           <EOL><DEDENT>results.append('<STR_LIT>'.format(ns, name, mver))<EOL><DEDENT>return sorted(results, key=lambda s: s.lower())<EOL>
List configuration(s) in the methods repository or a workspace.