code: def config_list(args):
      
      verbose = fcconfig.verbosity
      if args.workspace:
          if verbose:
              print("Retrieving method configs from space {0}".format(args.workspace))
          if not args.project:
              eprint("No project given, and no default project configured")
              return 1
          r = fapi.list_workspace_configs(args.project, args.workspace)
          fapi._check_response_code(r, 200)
      else:
          if verbose:
              print("Retrieving method configs from method repository")
          r = fapi.list_repository_configs(namespace=args.namespace,
                                           name=args.config,
                                           snapshotId=args.snapshot_id)
          fapi._check_response_code(r, 200)
  
      # Parse the JSON for the workspace + namespace
      methods = r.json()
      results = []
      for m in methods:
          ns = m['namespace']
          if not ns:
              ns = '__EMPTYSTRING__'
          name = m['name']
          # Ugh: configs in workspaces look different from configs in methodRepo
          mver = m.get('methodRepoMethod', None)
          if mver:
              mver = mver.get('methodVersion', 'unknown')     # space config
          else:
              mver = m.get('snapshotId', 'unknown')           # repo  config
          results.append('{0}\t{1}\tsnapshotId:{2}'.format(ns, name, mver))
  
      # Sort for easier viewing, ignore case
      return sorted(results, key=lambda s: s.lower())
docs: List configuration(s) in the methods repository or a workspace.