Skip to main content

Extension for colcon to create and modify command aliases.

Project description

An extension for colcon-core to create and modify command aliases.

Aliases condense any number of colcon command invocations made up of a verb followed by all associated arguments down to another ‘alias’ verb. When invoking the alias verb, additional arguments can be appended to the original invocations.

An example alias called ‘bat’, short for ‘build and test’:

$ colcon alias bat --command build --command test
Registered command list for alias 'bat':
  build
  test
$ colcon bat --packages-select colcon-alias
Running command alias: colcon build --packages-select colcon-alias
...
Running command alias: colcon test --packages-select colcon-alias
...

Another example, an alias for building specific packages:

$ colcon alias buildpkg --command build --event-handler console_direct+ --packages-select
Registered command list for alias 'buildpkg':
  build --event-handler console_direct+ --packages-select
$ colcon buildpkg colcon-alias
Running command alias: colcon build --event-handler console_direct+ --packages-select colcon-alias
...

A list of currently registered aliases can be found in the colcon help text:

$ colcon --help
...

colcon aliases:
  bat                   build
                        test
  buildpkg              build --event-handler console_direct+ --packages-select

...

Note: When using colcon-alias with the colcon-mixin extension, the --mixin command line argument is applied as an argument to --command and not used as an actual mixin to the alias verb.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colcon-alias-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

colcon_alias-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file colcon-alias-0.1.0.tar.gz.

File metadata

  • Download URL: colcon-alias-0.1.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/59.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for colcon-alias-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0e1fe37d9e1ce85ae2ee9a9545a954d7da0fc435d9eaaf96b6cfcfbde8655d8
MD5 37a2dd81e4c3c74db0b71efac2cefeb3
BLAKE2b-256 c53bbe3effb463d23964e84165c545934049d032c442d919d73a6a8d43e3f380

See more details on using hashes here.

Provenance

File details

Details for the file colcon_alias-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: colcon_alias-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/59.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for colcon_alias-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cd17a416ae7a179a83e8d59a73f58af90997048df63b6e5d8668fa47643cc02
MD5 5c6fb5ffa6da857531815b7073a76db0
BLAKE2b-256 9dfb6c83a3983d30377385b06b3ead9f67ad63662ec7043ae0c6bd64bfa4e294

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page