#pragma once /** * @file * @brief Options for printing Nix values. */ #include namespace nix { /** * Options for printing Nix values. */ struct PrintOptions { /** * If true, output ANSI color sequences. */ bool ansiColors = false; /** * If true, force values. */ bool force = false; /** * If true and `force` is set, print derivations as * `«derivation /nix/store/...»` instead of as attribute sets. */ bool derivationPaths = false; /** * If true, track which values have been printed and skip them on * subsequent encounters. Useful for self-referential values. */ bool trackRepeated = true; /** * Maximum depth to evaluate to. */ size_t maxDepth = std::numeric_limits::max(); /** * Maximum number of attributes in an attribute set to print. */ size_t maxAttrs = std::numeric_limits::max(); /** * Maximum number of list items to print. */ size_t maxListItems = std::numeric_limits::max(); /** * Maximum string length to print. */ size_t maxStringLength = std::numeric_limits::max(); }; }