mirror of
https://github.com/NixOS/nix.git
synced 2025-12-02 15:11:00 +01:00
27 lines
424 B
C++
27 lines
424 B
C++
#pragma once
|
|
|
|
#include "nix/cmd/command.hh"
|
|
#include "nix/cmd/installable-flake.hh"
|
|
#include "nix/flake/flake.hh"
|
|
|
|
namespace nix {
|
|
|
|
using namespace nix::flake;
|
|
|
|
class FlakeCommand : virtual Args, public MixFlakeOptions
|
|
{
|
|
protected:
|
|
std::string flakeUrl = ".";
|
|
|
|
public:
|
|
|
|
FlakeCommand();
|
|
|
|
FlakeRef getFlakeRef();
|
|
|
|
LockedFlake lockFlake();
|
|
|
|
std::vector<FlakeRef> getFlakeRefsForCompletion() override;
|
|
};
|
|
|
|
}
|