# Path: siptools/utils.py
# def list2str(lst):
#     """Create a human readable list of words from list of strings.
# 
#     :param lst: list of strings
#     :returns: list formatted as single string
#     """
#     first_words = ['"{}"'.format(string) for string in lst[:-1]]
#     last_word = '"{}"'.format(lst[-1])
#     return ', '.join(first_words) + ', and ' + last_word
# 
# Path: siptools/xml/premis.py
# PREMIS_AGENT_TYPES = ['software', 'hardware', 'person', 'organization']


import os
import sys
import json
import hashlib
import click
from siptools.utils import list2str
from siptools.xml.premis import PREMIS_AGENT_TYPES
"""Command line tool for collecting agent metadata"""
from __future__ import unicode_literals, print_function




click.disable_unicode_literals_warning = True


@click.command()
@click.argument('agent_name', required=True, type=str)
@click.option('--workspace',
              type=click.Path(exists=True),
              default='./workspace',
              metavar='<WORKSPACE PATH>',
              help=("Directory where files are created. Defaults "
                    "to ./workspace/"))
@click.option('--agent_type', required=True,
              type=click.Choice(PREMIS_AGENT_TYPES),
              help=('The type of the agent. Possible values are: ' +

# Path: siptools/utils.py
# def list2str(lst):
#     """Create a human readable list of words from list of strings.
# 
#     :param lst: list of strings
#     :returns: list formatted as single string
#     """
#     first_words = ['"{}"'.format(string) for string in lst[:-1]]
#     last_word = '"{}"'.format(lst[-1])
#     return ', '.join(first_words) + ', and ' + last_word
# 
# Path: siptools/xml/premis.py
# PREMIS_AGENT_TYPES = ['software', 'hardware', 'person', 'organization']


# Path: siptools/scripts/create_agent.py
import os
import sys
import json
import hashlib
import click
from siptools.utils import list2str
from siptools.xml.premis import PREMIS_AGENT_TYPES

"""Command line tool for collecting agent metadata"""
from __future__ import unicode_literals, print_function




click.disable_unicode_literals_warning = True


@click.command()
@click.argument('agent_name', required=True, type=str)
@click.option('--workspace',
              type=click.Path(exists=True),
              default='./workspace',
              metavar='<WORKSPACE PATH>',
              help=("Directory where files are created. Defaults "
                    "to ./workspace/"))
@click.option('--agent_type', required=True,
              type=click.Choice(PREMIS_AGENT_TYPES),
              help=('The type of the agent. Possible values are: ' +

                    list2str(PREMIS_AGENT_TYPES)))