Skip to content

Commit 6e1e726

Browse files
committed
Docstring and documentation improvements.
- Add new ``planemo docs`` command to open Planemo docs in a web browser. - Add docstrings to all command modules.
1 parent 2c90559 commit 6e1e726

39 files changed

+71
-33
lines changed

docs/planemo.commands.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ planemo.commands.cmd_docker_shell module
108108
:undoc-members:
109109
:show-inheritance:
110110

111+
planemo.commands.cmd_docs module
112+
--------------------------------
113+
114+
.. automodule:: planemo.commands.cmd_docs
115+
:members:
116+
:undoc-members:
117+
:show-inheritance:
118+
111119
planemo.commands.cmd_lint module
112120
--------------------------------
113121

planemo/cli.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,17 @@ def get_command(self, ctx, name):
117117
envvar="PLANEMO_GLOBAL_WORKSPACE",
118118
help="Workspace for planemo.")
119119
@pass_context
120-
def planemo(ctx, config, directory, verbose):
121-
"""Utilities to assist with the development of Galaxy tools."""
120+
def planemo(ctx, config, directory, verbose): # noqa
121+
"""A command-line toolkit for building tools and workflows for Galaxy.
122+
123+
Check out the full documentation for Planemo online
124+
http://planemo.readthedocs.org or open with ``planemo docs``.
125+
"""
122126
ctx.verbose = verbose
123127
ctx.planemo_config = os.path.expanduser(config)
124128
ctx.planemo_directory = os.path.expanduser(directory)
129+
130+
131+
__all__ = [
132+
"planemo",
133+
]

planemo/commands/cmd_brew.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``brew`` command."""
12
import click
23

34
from planemo.cli import pass_context

planemo/commands/cmd_brew_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``brew_env`` command."""
12
from __future__ import print_function
23
import click
34
import os

planemo/commands/cmd_brew_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``brew_init`` command."""
12
import click
23

34
import urllib

planemo/commands/cmd_conda_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``conda_env`` command."""
12
from __future__ import print_function
23
import click
34

planemo/commands/cmd_conda_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``conda_init`` command."""
12
import click
23

34
from planemo.cli import pass_context

planemo/commands/cmd_conda_install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Module describing the planemo ``conda_install`` command."""
12
import click
23

34
from planemo.cli import pass_context

planemo/commands/cmd_config_init.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
"""
1+
"""Module describing the planemo ``config_init`` command."""
32
import os
43
import sys
54

planemo/commands/cmd_create_gist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
"""
1+
"""Module describing the planemo ``create_gist`` command."""
32
import click
43

54
from planemo.cli import pass_context

0 commit comments

Comments
 (0)