Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-13 | Trim option descriptions | Eelco Dolstra | |
This removes unintended blank lines in Markdown when the description is a multiline string literal. | |||
2022-07-11 | Fix flake input completion for `InstallablesCommand`s | Naïm Favier | |
Defers completion of flake inputs until the whole command line is parsed so that we know what flakes we need to complete the inputs of. Previously, `nix build flake --update-input <Tab>` always behaved like `nix build . --update-input <Tab>`. | |||
2022-04-19 | Merge pull request #6128 from ncfavier/fix-completion | Eelco Dolstra | |
Shell completion improvements | |||
2022-03-07 | Perform tilde expansion when completing flake fragments | Naïm Favier | |
Allows completing `nix build ~/flake#<Tab>`. We can implement expansion for `~user` later if needed. Not using wordexp(3) since that expands way too much. | |||
2022-03-07 | Make completeDir follow symlinks | Naïm Favier | |
Allows completing `nix why-depends /run/cur<Tab>` to /run/current-system | |||
2022-03-07 | Ensure the completion marker is not processed beyond completion | Naïm Favier | |
I was surprised to see an error mentioning ___COMPLETE___ when trying to complete a flag argument that had no completer implemented | |||
2022-03-07 | Implement a suggestions mechanism | regnat | |
Each `Error` class now includes a set of suggestions, and these are printed by the top-level handler. | |||
2022-02-25 | Remove std::string alias (for real this time) | Eelco Dolstra | |
Also use std::string_view in a few more places. | |||
2021-12-22 | Don't insert spaces when completing attribute paths | Naïm Favier | |
2021-09-13 | nix --help: Display help using lowdown instead of man | Eelco Dolstra | |
Fixes #4476. Fixes #5231. | |||
2021-02-26 | nix flake update: Recreate the lock file | Eelco Dolstra | |
This is probably what most people expect it to do. Fixes #3781. There is a new command 'nix flake lock' that has the old behaviour of 'nix flake update', i.e. it just adds missing lock file entries unless overriden using --update-input. | |||
2021-02-24 | Respect command registrations in plugins. | Shea Levy | |
2021-02-24 | Initialize plugins after handling initial command line flags | Shea Levy | |
This is technically a breaking change, since attempting to set plugin files after the first non-flag argument will now throw an error. This is acceptable given the relative lack of stability in a plugin interface and the need to tie the knot somewhere once plugins can actually define new subcommands. | |||
2021-02-07 | Support --no-net for backwards compatibility | Eelco Dolstra | |
2021-01-25 | Group common options | Eelco Dolstra | |
2021-01-25 | Group subcommands by category | Eelco Dolstra | |
2021-01-25 | Make '--help' do the same as 'help' (i.e. show a manpage) | Eelco Dolstra | |
2020-12-23 | Command: Remove examples() | Eelco Dolstra | |
2020-12-21 | Move doc() to Args | Eelco Dolstra | |
2020-12-03 | Add deprecated aliases for renamed commands | Eelco Dolstra | |
2020-10-09 | Completions::add(): Guard against newlines | Eelco Dolstra | |
2020-10-09 | Add a description in the completion outputs | regnat | |
Make nix output completions in the form `completion\tdescription`. This can't be used by bash (afaik), but other shells like zsh or fish can display it along the completion choices | |||
2020-10-06 | Remove static variable name clashes | Eelco Dolstra | |
This was useful for an experiment with building Nix as a single compilation unit. It's not very useful otherwise but also doesn't hurt... | |||
2020-08-20 | Allow 'nix' subcommands to provide docs in Markdown format | Eelco Dolstra | |
2020-08-17 | Start generation of the nix.1 manpage | Eelco Dolstra | |
2020-08-17 | Add 'nix dump-args' to dump all commands/flags for manpage generation | Eelco Dolstra | |
2020-07-01 | Don't process an option if any of its arguments need completion | Eelco Dolstra | |
2020-06-26 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-18 | Merge branch 'enum-class' into no-hash-type-unknown | John Ericson | |
2020-06-18 | Merge remote-tracking branch 'upstream/master' into enum-class | John Ericson | |
2020-06-17 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-11 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-06-04 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-04 | Make 'nix dev-shell' a deprecated alias for 'nix develop' | Eelco Dolstra | |
2020-06-02 | Fix to-base --type handler to correctly set std::optional flag | John Ericson | |
Now that we have a separate flag function, also describe why it is optional. | |||
2020-06-02 | Remove `HashType::Unknown` | John Ericson | |
Instead, `Hash` uses `std::optional<HashType>`. In the future, we may also make `Hash` itself require a known hash type, encoraging people to use `std::optional<Hash>` instead. | |||
2020-05-28 | Merge branch 'master' of github.com:NixOS/nix into enum-class | Carlo Nucera | |
2020-05-12 | Fix macOS build | Eelco Dolstra | |
macOS doesn't have GLOB_ONLYDIR. | |||
2020-05-11 | fixes to merged code | Ben Burdette | |
2020-05-11 | Merge branch 'master' into errors-phase-2 | Ben Burdette | |
2020-05-11 | When completing flakerefs, only return directories | Eelco Dolstra | |
2020-05-11 | Shut up warnings while running completers | Eelco Dolstra | |
2020-05-11 | Cleanup | Eelco Dolstra | |
2020-05-10 | Simplify | Eelco Dolstra | |
2020-05-10 | Add completion for paths | Eelco Dolstra | |
2020-05-10 | nix: Implement basic bash completion | Eelco Dolstra | |
2020-05-05 | nix --help: Group commands | Eelco Dolstra | |
2020-05-04 | Flag: Use designated initializers | Eelco Dolstra | |
2020-04-21 | remove 'format' from Error constructor calls | Ben Burdette | |
2020-03-29 | Use `enum struct` and drop prefixes | John Ericson | |
This does a few enums; the rest will be gotten in subsequent commits. |