2 unstable releases
0.2.0 | Mar 14, 2024 |
---|---|
0.1.0 | Mar 11, 2024 |
#780 in Game dev
54 downloads per month
21KB
490 lines
Lospec CLI
Lospec CLI is a command-line interface tool that allows users to interact with Lospec's color palettes conveniently. With this tool, you can search for color palettes and download them.
Usage
lospec <COMMAND>
Commands
search
: Search for color palettesdownload
: Download a color palettehelp
: Print this message or the help of the given subcommand(s)
Options
-h, --help
: Print help
Installation
Cargo
To install Lospec CLI using cargo
, run the following command:
cargo install lospec-cli
Source
To install Lospec CLI from source, follow these steps:
- Clone this repository:
git clone https://github.com/lospec/lospec-cli.git
- Navigate to the project directory:
cd lospec-cli
- Install:
cargo install --path .
Examples
Searching for Color Palettes
To search for color palettes, use the search
command followed by your query:
lospec search --tag purple --max 8 -p 2 --sorting az
In other words:
--tag "purple"
— search for the color schemes with a "purple" tag--max 8
— search for a palette with a maximum of 8 colors-p 2
— show the second page of results--sorting az
— sort results alphabetically
Downloading Color Palettes
To download a color palette, use the download
command followed by the palette's slug:
lospec download slso8 -f colorset
In other words:
download sls08
— download thesls08
palette-f colorset
— save the palette in XCode's.colorset
format
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~9–21MB
~304K SLoC