lix/src/libcmd
Rebecca Turner b63d4a0c62
Remove static initializers for RegisterLegacyCommand
This moves the "legacy"/"nix2" commands under a new `src/legacy/`
directory, instead of being scattered around in a bunch of different
directories.

A new `liblegacy` build target is defined, and the `nix` binary is
linked against it.

Then, `RegisterLegacyCommand` is replaced with `LegacyCommand::add`
calls in functions like `registerNixCollectGarbage()`. These
registration functions are called explicitly in `src/nix/main.cc`.

See: lix-project/lix#359

Change-Id: Id450ffc3f793374907599cfcc121863b792aac1a
2024-10-01 16:08:58 -07:00
..
built-path.cc Merge pull request #9582 from pennae/misc-opts 2024-03-04 07:32:31 +01:00
built-path.hh treewide: fix a bunch of lints 2024-08-26 16:13:03 -07:00
cmd-profiles.cc refactor: make HashType and Base enum classes for type safety 2024-08-08 14:53:17 -07:00
cmd-profiles.hh language: cleanly ban integer overflows 2024-07-13 00:59:33 +02:00
command.cc Merge pull request #9289 from edolstra/fix-warnings 2024-03-04 05:27:35 +01:00
command.hh refactor some nix-env and profile code to libcmd 2024-04-29 01:19:21 +00:00
common-eval-args.cc common-eval-args: raise warning if --arg isn't a valid Nix identifier 2024-09-15 16:52:30 +02:00
common-eval-args.hh add docstring to lookupFileArg 2024-05-23 14:11:10 -06:00
editor-for.cc tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
editor-for.hh Merge pull request #9634 from 9999years/combine-abstract-pos-and-pos 2024-03-05 23:46:18 -07:00
installable-attr-path.cc remove unused headers in installable-attr-path 2024-08-01 00:37:13 +00:00
installable-attr-path.hh remove unused headers in installable-attr-path 2024-08-01 00:37:13 +00: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 language: cleanly ban integer overflows 2024-07-13 00:59:33 +02:00
installable-flake.hh Rename 'resolvedRef' to 'lockedRef' 2023-07-03 12:23:57 +02:00
installable-value.cc Merge pull request #9634 from 9999years/combine-abstract-pos-and-pos 2024-03-05 23:46:18 -07:00
installable-value.hh language: cleanly ban integer overflows 2024-07-13 00:59:33 +02:00
installables.cc Merge pull request #10570 from layus/shared_caches 2024-06-19 18:39:11 +00:00
installables.hh util.hh: Delete remaining file and clean up headers 2024-05-29 12:38:51 +02:00
legacy.cc Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
legacy.hh Remove static initializers for RegisterLegacyCommand 2024-10-01 16:08:58 -07:00
lix-cmd.pc.in packaging: rename nixexpr -> lixexpr and so on 2024-05-23 16:45:23 -06:00
markdown.cc util.hh: Delete remaining file and clean up headers 2024-05-29 12:38:51 +02:00
markdown.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
meson.build build: build lix-doc with Meson! 🎉 2024-08-20 17:21:13 +00:00
repl-interacter.cc Remove readline support 2024-09-16 10:48:20 -07:00
repl-interacter.hh repl: log errors writing to history file 2024-05-23 18:10:23 +00:00
repl-overlays.nix format repl-overlays.nix to fix pre-commit checks 2024-04-09 02:21:26 -06:00
repl.cc libutil/config: unify path setting types 2024-08-21 17:57:23 +02:00
repl.hh refactor: move readline stuff into its own file 2024-03-11 01:04:52 -07:00