diff options
author | Timothy DeHerrera <tim@nrdxp.dev> | 2023-01-12 12:35:22 -0700 |
---|---|---|
committer | Timothy DeHerrera <tim@nrdxp.dev> | 2023-02-28 12:29:15 -0700 |
commit | 269caa531729524915761f8a71e47e59e6a8598d (patch) | |
tree | 07e8569776eb89ff9d5f45d104c1e531755fb70d /src/libcmd/command.hh | |
parent | db14e1d4aeb206e302f9cd9f02a10e9be0499e2c (diff) |
feat: read installable paths from stdin
Resolves #7437 for new `nix` commands only by adding a `--stdin` flag.
If paths are also passed on the cli they will be combined with the ones
from standard input.
Diffstat (limited to 'src/libcmd/command.hh')
-rw-r--r-- | src/libcmd/command.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh index b6d554aab..49c7b4f9b 100644 --- a/src/libcmd/command.hh +++ b/src/libcmd/command.hh @@ -128,6 +128,8 @@ struct InstallablesCommand : virtual Args, SourceExprCommand virtual bool useDefaultInstallables() { return true; } + bool readFromStdIn; + std::vector<std::string> getFlakesForCompletion() override; protected: |