-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve 11 - CLI #13
Resolve 11 - CLI #13
Conversation
To run the cli is necessary to use a python 3 from the root of the project: python src/cli.py There are some arguments that can be passed:
|
Test with all arguments passed (without help, version and quiet mode) Test with error on img argument: The cli fail if the arguments out is passed without any value: If the name of the output image is passed without any extension the cli put the default one (for now I set the png, but we can change it): If the no_average argument is passed with a value the cli return an error (the output must be enhance 'cause right now is not so good): The argument pixel_area fail if no value is passed: This is the extended version of the cli with every operational arguments passed: @TheJoin95 any idea to improve the output? otherwise I try to think up some logs by myself. |
If any error occur maybe we should specify the right format with an example, like: Then about the palette we can show which palette are now supported and their alias. Also because in order to have a custom palette, you can just say: you have selected a custom palette Also by adding the color library it will be for sure better Schroedinger-Hat/ImageGoNord-cli#8 |
Create main method to dinamically upload palettes
now is possible to give the colors name and image path
* refactoring cli.py * remove useless cycles * add default palette when no palettes are given * remove whitespace on nord palette set TODO: resolve whitespace problems on colorset, this may need a new version of ign core library => see https://github.com/Schrodinger-Hat/ImageGoNord-pip
* in order to prevent wrong palette selection the flag PALETTE_CHANGED is update only when a new color_set is add * remove utility scripts Close #13
Test file is no longer needed
Resolve #11