nix-super/src/libcmd
Théophane Hufschmitt 7fff625e39
Improve the error message for “multicommands” commands (#9510)
* Factor out the default `MultiCommand` behavior

All the `MultiCommand`s had (nearly) the same behavior when called
without a subcommand.
Factor out this behavior into the `NixMultiCommand` class.

* Display the list of available subcommands when none is specified

Whenever a user runs a command that excepts a subcommand, add the list
of available subcommands to the error message.

* Print the multi-command lists as Markdown lists

This takes more screen real estate, but is also much more readable than
a comma-separated list
2023-12-06 13:13:45 +00:00
..
built-path.cc Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
built-path.hh Merge pull request #6236 from obsidiansystems/store-dir-config 2023-12-01 15:38:14 +01:00
command-installable-value.cc Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
command-installable-value.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
command.cc Improve the error message for “multicommands” commands (#9510) 2023-12-06 13:13:45 +00:00
command.hh Improve the error message for “multicommands” commands (#9510) 2023-12-06 13:13:45 +00:00
common-eval-args.cc Document each store type on its own page 2023-12-01 01:27:52 +01:00
common-eval-args.hh libcmd: lookupFileArg(): add baseDir 2023-11-07 13:24:01 -05:00
editor-for.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
editor-for.hh Merge remote-tracking branch 'upstream/master' into source-path 2023-04-17 11:41:50 +02:00
installable-attr-path.cc Fixing #7479 2023-08-18 11:44:00 -04:00
installable-attr-path.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
installable-derived-path.cc Fixing #7479 2023-08-18 11:44:00 -04:00
installable-derived-path.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
installable-flake.cc feat: notation to refer to no attribute search prefix 2023-08-19 17:07:46 -04:00
installable-flake.hh Rename 'resolvedRef' to 'lockedRef' 2023-07-03 12:23:57 +02:00
installable-value.cc Make the Derived Path family of types inductive for dynamic derivations 2023-08-10 00:08:32 -04:00
installable-value.hh Make more string values work as installables 2023-05-15 09:03:38 -04:00
installables.cc add deprecation warnings in documentation 2023-11-27 14:07:32 +01:00
installables.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
legacy.cc Move command plugin interface to libnixcmd 2021-01-26 06:22:24 -05:00
legacy.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
local.mk Use buildprefix in a few more places 2023-11-29 19:49:07 -05:00
markdown.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
markdown.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
nix-cmd.pc.in Fix building with GCC 9 2023-02-10 18:38:57 +01:00
repl.cc nix repl: Only hide the progress bar while waiting for user input 2023-11-27 19:25:15 +01:00
repl.hh Clean up SearchPath 2023-07-09 23:22:22 -04:00