https://github.com/schadokar/colorcli
the `colorcli` is to return the name of the hexcode of the color. If the hexcode doesn't exist then `colorcli` can add the color.
https://github.com/schadokar/colorcli
cli cobra golang tutorial
Last synced: 9 months ago
JSON representation
the `colorcli` is to return the name of the hexcode of the color. If the hexcode doesn't exist then `colorcli` can add the color.
- Host: GitHub
- URL: https://github.com/schadokar/colorcli
- Owner: schadokar
- License: apache-2.0
- Created: 2020-03-18T11:27:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T11:35:39.000Z (almost 6 years ago)
- Last Synced: 2024-12-25T17:42:15.976Z (about 1 year ago)
- Topics: cli, cobra, golang, tutorial
- Language: Go
- Size: 188 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# colorcli
The `colorcli` is to return the name of the hexcode of the color. If the hexcode doesn't exist then `colorcli` can add the color.
The complete tutorial is published on [codesource.io]().
## Instruction to run the cli
1. Download the `colornames.min.json` from the [color-name](https://github.com/meodai/color-names#cdn-) git repo.
```
curl -O https://github.com/meodai/color-names#cdn-
```
2. go install colorcli
3. get the color name
```
$ colorcli name ffffff
Name: White, Hex: ffffff
```
4. add the color to the colornames file.
```
$ colorcli addcolor fffeee lightcream
Hex to color added successfully!
```
## Author
Hi there, I am Shubham Chadokar. I write articles and tutorials on Blockchain, golang, nodejs and reactjs. You can read my other articles and tutorials on my [blog](https://schadokar.dev).