aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command-installable-value.hh
blob: 7880d411998b294ea9504306c8c05a8f4ebed5cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
};

}