diff --git a/pyproject.toml b/pyproject.toml index afda59d..03e4286 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "viewser" -version = "6.0.1" +version = "6.0.2" description = "The Views 3 CLI tool" authors = ["peder2911 "] readme = "README.md" diff --git a/viewser/commands/documentation/cli.py b/viewser/commands/documentation/cli.py index 6260583..72bbb1e 100644 --- a/viewser/commands/documentation/cli.py +++ b/viewser/commands/documentation/cli.py @@ -125,13 +125,10 @@ def show_transform( response_dict = json.loads(obj["operations"].show(transform_name)) if len(response_dict['entries'])>0: - response_df = pd.DataFrame.from_dict(response_dict['entries'])[['name', 'path']].sort_values(by='name').reset_index(drop=True).to_string() + response_df = pd.DataFrame.from_dict(response_dict['entries'])['path'].sort_values().reset_index(drop=True).to_string() click.echo(response_df) else: - click.echo(response_dict['name']) - click.echo(response_dict['data'].items()) - for key,value in response_dict['data'].items(): - click.echo(':'.join([key,str(value)])) + click.echo(response_dict['data']['docstring']) @transforms_cli.command(name="annotate", short_help="add documentation text")