diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-03 22:42:36 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-20 09:45:29 -0500 |
commit | 1bd03ad100e8813751b6c08b0c21ae8cf5a9c21d (patch) | |
tree | 2e625eda7966d2e10bf7316ae8fa352eaa100b27 /src/libcmd/command.hh | |
parent | 57a2e46ee0890093c9882f961d7d95c56d7c0ad5 (diff) |
Split out `CmdRepl` and `editorFor`
The REPL itself and the `nix repl` CLI are conceptually different
things, and thus deserve to be in different files.
Diffstat (limited to 'src/libcmd/command.hh')
-rw-r--r-- | src/libcmd/command.hh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh index d16bdbc4b..1516daa00 100644 --- a/src/libcmd/command.hh +++ b/src/libcmd/command.hh @@ -231,10 +231,6 @@ static RegisterCommand registerCommand2(std::vector<std::string> && name) return RegisterCommand(std::move(name), [](){ return make_ref<T>(); }); } -/* Helper function to generate args that invoke $EDITOR on - filename:lineno. */ -Strings editorFor(const Path & file, uint32_t line); - struct MixProfile : virtual StoreCommand { std::optional<Path> profile; @@ -284,8 +280,4 @@ void printClosureDiff( const StorePath & afterPath, std::string_view indent); - -void runRepl( - ref<EvalState> evalState, - const ValMap & extraEnv); } |