Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
misc-store-flags.hh
1#include "args.hh"
2#include "content-address.hh"
3
4namespace nix::flag {
5
6Args::Flag hashAlgo(std::string && longName, HashAlgorithm * ha);
7static inline Args::Flag hashAlgo(HashAlgorithm * ha)
8{
9 return hashAlgo("hash-algo", ha);
10}
11Args::Flag hashAlgoOpt(std::string && longName, std::optional<HashAlgorithm> * oha);
12Args::Flag hashFormatWithDefault(std::string && longName, HashFormat * hf);
13Args::Flag hashFormatOpt(std::string && longName, std::optional<HashFormat> * ohf);
14static inline Args::Flag hashAlgoOpt(std::optional<HashAlgorithm> * oha)
15{
16 return hashAlgoOpt("hash-algo", oha);
17}
18Args::Flag fileIngestionMethod(FileIngestionMethod * method);
19Args::Flag contentAddressMethod(ContentAddressMethod * method);
20
21}