Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
misc-store-flags.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/args.hh
"
5
#include "
nix/store/content-address.hh
"
6
7
namespace
nix::flag {
8
9
Args::Flag hashAlgo(std::string && longName, HashAlgorithm * ha);
10
11
static
inline
Args::Flag hashAlgo(HashAlgorithm * ha)
12
{
13
return
hashAlgo(
"hash-algo"
, ha);
14
}
15
16
Args::Flag hashAlgoOpt(std::string && longName, std::optional<HashAlgorithm> * oha);
17
Args::Flag hashFormatWithDefault(std::string && longName, HashFormat * hf);
18
Args::Flag hashFormatOpt(std::string && longName, std::optional<HashFormat> * ohf);
19
20
static
inline
Args::Flag hashAlgoOpt(std::optional<HashAlgorithm> * oha)
21
{
22
return
hashAlgoOpt(
"hash-algo"
, oha);
23
}
24
25
Args::Flag fileIngestionMethod(FileIngestionMethod * method);
26
Args::Flag contentAddressMethod(ContentAddressMethod * method);
27
28
}
// namespace nix::flag
args.hh
content-address.hh
libcmd
include
nix
cmd
misc-store-flags.hh
Generated by
1.18.0