First cut of user CLI API 

Done
On Dec 5, 2014, at 12:00 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/cli_api.py:

> +  elif isinstance(value, type_):
> +    return [value]
> +
> +  if any([not isinstance(s, type_) for s in value]):
> +    raise ValueError("The list is of incorrect type")
> +
> +  return [s for s in value]
> +
> +#def _print_green(text):
> +#  print("\033[0;32m{}\033[0m".format(text), end = '')
> +#
> +#def _print_red(text):
> +#  print("\033[0;31m{}\033[0m".format(text), end = '')
> +
> +def _print_string(val):
> +  print('{:{fmt}} '.format(val, fmt = STRING_FMT), end = '')


no spaces on kwargs please.

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/23/files#r21355577>.