aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_info-fmt.hh
blob: 3878f05735c9c72076a0a7829bf0671a380a6333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* vim: set sw=4 sts=4 et foldmethod=syntax : */

const auto fs_metadata = make_format_string_fetcher("info/metadata", 1)
    << param<'i'>() << param<'i'>() << param<'i'>() << param<'i'>() << param<'h'>() << "%{column 30}" << param<'s'>() << "\\n";

const auto fs_metadata_subsection = make_format_string_fetcher("info/metadata_subsection", 1)
    << param<'i'>() << param<'i'>() << param<'i'>() << param<'i'>() << param<'s'>() << "\\n";

const auto fs_repository_heading = make_format_string_fetcher("info/repository_heading", 1)
    << "Repository " << c::blue_or_pink() << param<'s'>() << c::normal() << ":\\n";

const auto fs_id_heading = make_format_string_fetcher("info/id_heading", 1)
    << "Extra Information for " << c::blue_or_pink() << param<'s'>() << c::normal() << ":\\n";

const auto fs_heading = make_format_string_fetcher("info/heading", 1)
    << c::blue_or_pink() << param<'s'>() << c::normal() << ":\\n";

const auto fs_contents_file = make_format_string_fetcher("info/contents_file", 1)
    << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();

const auto fs_contents_other = make_format_string_fetcher("info/contents_other", 1)
    << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();

const auto fs_contents_dir = make_format_string_fetcher("info/contents_dir", 1)
    << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();

const auto fs_contents_sym = make_format_string_fetcher("info/contents_sym", 1)
    << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << " -> " << param<'v'>()
    << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();