Start a shell from the example
workspace root dir:
The polyx
tool can create output images for info, deps, libs, and overview commands.
Let’s create an output image from info
:
example$ info out:info.png
If you need a transparent background, which can be useful if you are going to use the image graphically, e.g. on a website or to print a T-shirt, you can pass in :transparent
:
example$ deps out:deps.png :transparent
Set the color mode to light
if you want a white background:
example$ info color-mode:light out:info.png
If you choose any other filename extension, e.g., .txt
, polyx
will output text:
example$ poly info out:info.txt
The output contains ANSI escape codes to colorize the text.
If you cat info.txt
you’ll see colorful output:
ANSI escape codes are not appropriate for some usages.
Specify color-mode:none
for plaintext output:
example$ info out:info.txt color-mode:none
stable since: c91fdad
projects: 2 interfaces: 1
bases: 1 components: 1
project alias status dev
----------------------------- ---
command-line * cl --- ---
development * dev s-- s--
interface brick cl dev
----------------- --- ---
user user * stx st-
- cli * stx st-
The polyx
tool includes an overview command:
example$ overview out:overview.png :no-changes