1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
/// @file

#include "fs-accessor.hh"
#include "lix/libutil/result.hh"
#include "path.hh"
#include "store-api.hh"
#include <kj/async.h>

#define ANSI_ALREADY_VISITED "\e[38;5;244m"

namespace nix {
kj::Promise<Result<std::string>> genGraphString(
    const StorePath & start,
    const StorePath & to,
    const std::map<StorePath, StorePathSet> & graphData,
    Store & store,
    bool all,
    bool precise,
    std::optional<ref<FSAccessor>> accessor = std::nullopt
);
}