mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
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.
This commit is contained in:
parent
57a2e46ee0
commit
1bd03ad100
9 changed files with 198 additions and 123 deletions
11
src/libcmd/editor-for.hh
Normal file
11
src/libcmd/editor-for.hh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
/* Helper function to generate args that invoke $EDITOR on
|
||||
filename:lineno. */
|
||||
Strings editorFor(const Path & file, uint32_t line);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue