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

Schema which hides outputs from nix flake show #35

Open
blaggacao opened this issue Jan 28, 2025 · 0 comments
Open

Schema which hides outputs from nix flake show #35

blaggacao opened this issue Jan 28, 2025 · 0 comments

Comments

@blaggacao
Copy link

blaggacao commented Jan 28, 2025

In case it hasn't been considered yet.


nix flake show is a user facing command. The designer might want some control over its output. He might want to hide certain less important outputs so that the user is presented with a clean overview of the flake outputs.

This, a priori, violates the customary expectation that nix flake show provides a complete inventory (even though only showing unknown on undefined schemata).

A synthesis could be:

  • Add nix flake show --include-hidden (or similar flag); the presence of which clarifies all expectations from the point of its introduction
  • Any --json version must also include hidden. Machine processing doesn't care about aesthetics and prefers complete information.

Note, that this doesn't propose to hide "unknown" outputs, but rather to introduce some mechanism to identify, specify and hide a an output schema. The implementation may be located inside the schema definition, e.g. hide = true;. Therefore, in order to hide an output, it must be a known schema.

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

1 participant