MCPcopy Index your code
hub / github.com/Aloso/colo

github.com/Aloso/colo @v0.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.1 ↗ · + Follow
191 symbols 417 edges 32 files 38 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

colo Logo

Command-line tool for displaying colors, written in Rust

Crates.io Crates.io Tests

Changelog ☑

The changelog can be found here.

Note that colo is young and evolving rapidly. There will likely be big changes in the next releases.

Usage 📚

How to use colo is explained on the website.

Here is the list of supported color spaces.

Installation 🚀

How to install colo is explained on the releases page.

Build from source 🛠

If you want to build colo from source, make sure you have the Rust toolchain (including Cargo) installed. Then clone this repository and run

cargo install --path .

Or, if you don't want to clone the repository, you can run

cargo install --git https://github.com/Aloso/colo

This builds the code from the main branch. You can specify a different branch with --branch or a tag with --tag.

Code of Conduct 🤝

Please be friendly and respectful to others. This should be a place where everyone can feel safe, therefore I intend to enforce the Rust code of conduct.

Contributing 🙌

I appreciate your help! The easiest way to help is to file bug reports or suggest new features in the issue tracker.

If you want to create a pull request, make sure the following requirements are met:

  • The code is documented
  • If you add a dependency that includes unsafe code, please explain why it is required
  • Please try to keep compile times small, if feasible

Also, to pass continuous integration, the code must

  • be properly formatted with cargo fmt
  • pass cargo clippy
  • compile on the latest stable Rust version on Ubuntu, Windows and macOS.
  • all tests must pass

To contribute to the website, send a PR to the gh-pages branch.

That's it! If you have any questions, feel free to create an issue.

Extension points exported contracts — how you extend this code

Cmd (Interface)
A clap (sub)command. Each subcommand is defined in its own module and is registered in `MainCmd::command` and in `MainC [11 …
src/cli/mod.rs

Core symbols most depended-on inside this repo

len
called by 28
src/terminal/picker/mod.rs
with_bounds
called by 15
src/terminal/picker/three_lines.rs
parse
called by 15
src/color/hex.rs
to_term_color
called by 13
src/color/mod.rs
color
called by 10
src/terminal/picker/three_lines.rs
values_to_colors
called by 10
src/cli/util.rs
len
called by 9
src/terminal/picker/three_lines.rs
to_rgb
called by 8
src/color/mod.rs

Shape

Method 102
Function 61
Class 21
Enum 6
Interface 1

Languages

Rust100%

Modules by API surface

src/terminal/picker/three_lines.rs38 symbols
src/color/mod.rs20 symbols
src/terminal/picker/mod.rs15 symbols
src/color/parse.rs11 symbols
src/color/hex.rs9 symbols
src/color/format.rs6 symbols
src/cli/pick.rs6 symbols
src/cli/mod.rs6 symbols
src/cli/mix.rs6 symbols
src/terminal/show.rs5 symbols
src/color/space.rs5 symbols
src/color/gray.rs5 symbols

For agents

$ claude mcp add colo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact