Skip to main content

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.

Metadata

Release files for colcon-alias 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colcon-alias 0.1.1
File Size Uploaded
colcon-alias-0.1.1.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colcon-alias 0.1.1
File Interpreter ABI Platform
colcon_alias-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.7 kB

Release files / colcon-alias-0.1.1.tar.gz

Download URL colcon-alias-0.1.1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0e552843806078eed85f6b29023fb548e2707837d8a48c90fbd69a97e77d4d03
BLAKE2b-256 checksum
How to use checksums
aeb1db59479e8aeb3358c6fee436c3dfdaf3ffc412ab7d58ab6be0a647d81647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / colcon_alias-0.1.1-py3-none-any.whl

Download URL colcon_alias-0.1.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b63fc7ff8f95e4caf47098811e2964faf65c42435a103845723dde0fc6d3ae9
BLAKE2b-256 checksum
How to use checksums
cc40da1c2f983dac5889f6887679cab4ad93cc787b35cf839b0107812aa1bb24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page