aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_contents-fmt.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_contents-fmt.hh')
-rw-r--r--src/clients/cave/cmd_contents-fmt.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_contents-fmt.hh b/src/clients/cave/cmd_contents-fmt.hh
new file mode 100644
index 000000000..ccae47be5
--- /dev/null
+++ b/src/clients/cave/cmd_contents-fmt.hh
@@ -0,0 +1,14 @@
+/* vim: set sw=4 sts=4 et foldmethod=syntax : */
+
+const auto fs_file = make_format_string_fetcher("contents/file", 1)
+ << c::bold_blue_or_pink() << param<'s'>() << c::normal();
+
+const auto fs_dir = make_format_string_fetcher("contents/dir", 1)
+ << c::blue_or_pink() << param<'s'>() << c::normal();
+
+const auto fs_sym = make_format_string_fetcher("contents/sym", 1)
+ << c::bold_green_or_pink() << param<'s'>() << c::normal() << " -> " << param<'t'>();
+
+const auto fs_other = make_format_string_fetcher("contents/other", 1)
+ << c::bold_yellow() << param<'s'>() << c::normal();
+