Skip to content
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

Add pastel --layout {horizontal,vertical,detail} #185

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

purpleposeidon
Copy link

'Detail' remains the default layout. The layout can also be set as -v or -h as program arguments (which displaces the old pastel -h, which printed help) or by setting the PASTEL_LAYOUT environment variable.

  • readme video out of date
  • Didn't try compiling w/ rustc 1.43.

Closes #137

Actually this PR isn't good enough to go in. However I will leave it here in case someone is looking for it. Layout::Vertical is worthless compared to the vertical layout made by some of the other commands.

The command trait and the macro to help implement it are unnecessary ceremony. AFAICT the commands are all just outputting lists of colors with various different layouts. It would best to store them as &[(name, default_layout, fn(...) -> Vec<Color>)]

'Detail' remains the default layout. The layout can also be set as -v or -h
as program arguments (which displaces the old `pastel -h`, which printed help)
or by setting the PASTEL_LAYOUT environment variable.

- readme video out of date
- Didn't try compiling w/ rustc 1.43.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option for more compact display of multiple colors.
1 participant