Skip to content

Create a Tool.default_command method #1077

Description

@nathanjmcdougall

To avoid duplication between (and within) get_bitbucket_steps methods for CI, and probably help messages, etc.

This would be backend dependent.

By default, it should return None, since not all tools have commands. Otherwise, return a string.

The individual tool implementations (Tool subclassses), for tools which associated with commands, should provide an implementation.

We should use the method anywhere where the default command is used, e.g. help messages, but certainly get_bitbucket_steps methods.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions