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

bikeshed: Nix package manager cli output and options are rather ugly. How can we fix this? #634

Closed
lowfatcomputing opened this issue Sep 5, 2015 · 4 comments

Comments

@lowfatcomputing
Copy link

Nix is the most compelling package manager design I have ever seen however aesthetically I think it needs improvement:

  • output is extremely verbose and not easy to follow at a glance
  • lack of consistency/orthogonality -- different options with overlapping semantics among commands and options
  • grep is needed for searching packages (or an alias with grep)
  • maybe some color etc would be nice.

I don't think it's healthy for a project to be overly concerned with backwards compatibility. It is doubtful that there are many legacy nix/nixos systems out there. However, for the sake of existing tutorials, one just has to make changes incrementally and be clear about when change is happening or has happened.

I've also posted this here (check out the comments): https://www.reddit.com/r/NixOS/comments/3jr6ye/bikeshed_nix_package_manager_cli_output_and/

@michaelsproul
Copy link

Related: #561

@vcunat
Copy link
Member

vcunat commented Sep 8, 2015

output is extremely verbose

I simply use -Q almost always and then inspect non-interleaved logs by nix-store -l /path/to/my.drv

I believe there's a bit more concern for backward compatibility than you anticipate. Nix is being used for over a decade now. It might be easier to completely re-design the UI into a separate tool (and some were linked in the reddit discussion already).

@davidak
Copy link
Member

davidak commented Mar 31, 2017

For changing the color you can use ANSI escape codes.

http://stackoverflow.com/a/5947802/2611995

Example: printf "Nix: \033[0;31mError \033[0m25" ('Error' is red)

@edolstra
Copy link
Member

Closing in favor of #779 for UI improvement discussion.

Regarding grep, nix-env supports regular expressions in package matches.

zolodev pushed a commit to zolodev/nix that referenced this issue Jan 1, 2024
Add a summary of the Diataxis framework
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

No branches or pull requests

5 participants