A concise CLI wrapper for colcon build/test/clean workflows.
Project description
colcon-runner
Continuous Integration Status
Colcon runner is a minimal CLI wrapper for colcon that provides concise and flexible commands for common build, test, and clean tasks in ROS workspaces. It supports colcon defaults for consistent configuration.
Installation
You can install colcon-runner using pip:
pip install colcon-runner
CR(1) User Commands CR(1)
NAME
cr - Colcon Runner: concise CLI for common colcon tasks.
SYNOPSIS
cr VERB [PKG] [OPTIONS]
cr --help | -h
cr --version | -v
DESCRIPTION
A minimal wrapper around colcon providing short, mnemonic commands
for build, test, clean, and package selection operations.
STATE
s set a default package for subsequent commands.
VERBS
b build packages.
t Test packages.
c clean packages.
i install dependencies using rosdep.
SPECIFIER
o only (--packages-select)
u upto (--packages-up-to)
a all (default if omitted)
If no specifier is provided after a verb, it defaults to "a" (all). You can chain as many verb-specifier pairs as you want. You can set a default package to use for all subsequent commands, or you can specify a package in the command itself.
USAGE EXAMPLES
Basic Commands:
cr
Build all packages. (default action when no arguments provided)
cr b
Build all packages. (shorthand, specifier defaults to "a")
cr ba
Build all packages. (explicit)
cr bo pkg_1
Build only 'pkg_1'.
cr bu pkg_1
Build upto 'pkg_1' and its dependencies.
cr t
Test all packages. (shorthand)
cr ta
Test all packages. (explicit)
cr to pkg_1
Test only 'pkg_1'.
cr tu pkg_1
Test upto 'pkg_1' and its dependencies.
cr c
Clean workspace. (shorthand)
cr ca
Clean workspace (build/, install/, log/, and test_result/ directories)
cr co pkg_1
Clean only 'pkg_1'.
cr cu pkg_1
Clean upto 'pkg_1'.
cr i
Install all dependencies using rosdep. (shorthand)
cr ia
Install all dependencies using rosdep. (explicit)
cr io pkg_1
Install dependencies only for 'pkg_1'.
cr iu pkg_1
Install dependencies for 'pkg_1' and its dependencies.
Compound Commands:
cr s pkg1
Set 'pkg_1' as the default package for subsequent commands.
cr bt
Build all and test all. (shorthand)
cr cbt
Clean all, build all, and test all. (shorthand)
cr ib
Install all dependencies and build all.
cr iobo
Install dependencies for 'pkg1' only, then build only 'pkg1'.
cr cabu
Clean all and build up to 'pkg1'.
cr boto
build only 'pkg1' package, then test only 'pkg1'.
cr cabuto
Clean all, build up to 'pkg1', and test only 'pkg1'.
NOTES
- The 's' verb sets a default package name stored in a configuration file.
- The 'i' verb runs rosdep install and supports the same specifiers as other verbs.
- Subsequent commands that require a package argument will use the default if none is provided.
- Compound verbs can be chained together for streamlined operations.
SEE ALSO
colcon(1), colcon-clean(1)
Colcon runner assumes you have colcon defaults set up to ensure your paths and settings are applied when you run colcon. This is an example of a colcon defaults file to get consistent behavior across the commands supported here:
{
"build": {
"symlink-install": true,
"base-paths": ["/home/ros_ws/src"],
"build-base": "/home/ros_ws/ros_build/build",
"install-base": "/home/ros_ws/ros_build/install",
"cmake-args": [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
]
},
"test": {
"build-base": "/home/ros_ws/ros_build/build",
"install-base": "/home/ros_ws/ros_build/install",
"log-base": "/home/ros_ws/ros_build/logs",
"event-handlers": ["console_direct+"]
},
"test-result": {
"test-result-base": "/home/ros_ws/ros_build/build"
},
"clean.workspace": {
"yes": true,
"base-select": ["build", "install", "log", "test_result"],
"build-base": "/home/ros_ws/ros_build/build",
"install-base": "/home/ros_ws/ros_build/install",
"log-base": "/home/ros_ws/ros_build/logs",
"test-result-base": "/home/ros_ws/ros_build/build"
},
"clean.packages": {
"yes": true,
"base-select": ["build", "install", "log", "test_result"],
"build-base": "/home/ros_ws/ros_build/build",
"install-base": "/home/ros_ws/ros_build/install",
"log-base": "/home/ros_ws/ros_build/logs",
"test-result-base": "/home/ros_ws/ros_build/build"
},
"": {"log-base": "/home/ros_ws/ros_build/logs"}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colcon_runner-0.8.0.tar.gz.
File metadata
- Download URL: colcon_runner-0.8.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c99f38c1d18f5cfcf6cd5dc8648120db5c46bfc65d038c36251013193c674f
|
|
| MD5 |
23a7624c03c7c392bf207984d4f14550
|
|
| BLAKE2b-256 |
98a5f55b895de0ab3f7017f7d469109a97a31f56d7610ea5503b31c8203f6a75
|
File details
Details for the file colcon_runner-0.8.0-py2.py3-none-any.whl.
File metadata
- Download URL: colcon_runner-0.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f3f6ea18820f46cdc4445d1060e31ecb2f909dfac714be5b81a9469c42b20f
|
|
| MD5 |
55321813f65becd76253a8a43d05d58f
|
|
| BLAKE2b-256 |
89a5589b188c01584eac80ecf17ea8df3a8d39e5e20504605a8313ae2f467ce7
|