Skip to content

docs: namespace.add_task(..., aliases=...) example does not work #396

@jenisys

Description

@jenisys

VERSION: invoke-0.13.0 or newer (repo HEAD)
FILE: sites/doc/concepts/namespaces.rst

When you try the example that is described in the Aliases section:

ns.add_task(release, aliases=('deploy', 'pypi'))

it does not work because Collection.add_task() does not have an aliases parameter (or **kwargs argument). Note that the @task decorator still supports the aliases parameter.

SOLUTION (either / or):

  • Fix the documentation related to aliases
  • Provide the aliases parameter in the Collection.add_task() method again (?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions