def edit_inputs(client, workflow):
    """Edit workflow inputs."""
    types = {
        'int': int,
        'string': str,
        'File': lambda x: File(path=Path(x).resolve()),
    }
    for input_ in workflow.inputs:
        convert = types.get(input_.type, str)
        input_.default = convert(
            click.prompt(
                '{0.id} ({0.type})'.format(input_),
                default=_format_default(client, input_.default),
            )
        )
    return workflow
def edit_inputs ( client , workflow ) : types = { 'int' : int , 'string' : str , 'File' : lambda x : File ( path = Path ( x ) . resolve ( ) ) , } for input_ in workflow . inputs : convert = types . get ( input_ . type , str ) input_ . default = convert ( click . prompt ( '{0.id} ({0.type})' . format ( input_ ) , default = _format_default ( client , input_ . default ) , ) ) return workflow
Edit workflow inputs.