mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 18:56:16 +02:00
f4ab297b31
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
23 lines
473 B
C++
23 lines
473 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "installable-value.hh"
|
|
#include "command.hh"
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* An InstallableCommand where the single positional argument must be an
|
|
* InstallableValue in particular.
|
|
*/
|
|
struct InstallableValueCommand : InstallableCommand
|
|
{
|
|
/**
|
|
* Entry point to this command
|
|
*/
|
|
virtual void run(ref<Store> store, ref<InstallableValue> installable) = 0;
|
|
|
|
void run(ref<Store> store, ref<Installable> installable) override;
|
|
};
|
|
|
|
}
|