forked from lix-project/lix
f4ab297b31
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
24 lines
473 B
C++
24 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;
|
|
};
|
|
|
|
}
|